private function userFromEmail($email)
    {
        $parts = explode('@', $email);

        if (count($parts) == 2) {
            return strtolower($parts[0]);
        }

        return null;
    }
private function userFromEmail($email)
    {
        $parts = explode('@', $email);

        if (count($parts) == 2) {
            return strtolower($parts[0]);
        }

        return null;
    }
private function userFromEmail ( $ email ) { $ parts = explode ( '@' , $ email ) ; if ( count ( $ parts ) == 2 ) { return strtolower ( $ parts [ 0 ] ) ; } return null ; }
Get the user form an email address

@access private
@param string $email Address
@return string|null
Get the user form an email address