public function cleanEventName($eventName)
    {
        $eventName = strtolower($eventName);
        $eventName = str_replace('..', '.', $eventName);
        $eventName = trim($eventName, '.');
        $eventName = trim($eventName);

        if (!$eventName) {
            throw new Exception('Event name is empty!');
        }

        return $eventName;
    }
public function cleanEventName($eventName)
    {
        $eventName = strtolower($eventName);
        $eventName = str_replace('..', '.', $eventName);
        $eventName = trim($eventName, '.');
        $eventName = trim($eventName);

        if (!$eventName) {
            throw new Exception('Event name is empty!');
        }

        return $eventName;
    }
public function cleanEventName ( $ eventName ) { $ eventName = strtolower ( $ eventName ) ; $ eventName = str_replace ( '..' , '.' , $ eventName ) ; $ eventName = trim ( $ eventName , '.' ) ; $ eventName = trim ( $ eventName ) ; if ( ! $ eventName ) { throw new Exception ( 'Event name is empty!' ) ; } return $ eventName ; }
Prepare event namebefore using

@param string $eventName
@return string
@throws Exception
Prepare event namebefore using