protected function username($account)
    {
        // Username's may be prefixed with their domain,
        // we just need their account name.
        $username = explode('\\', $account);

        if (count($username) === 2) {
            list($domain, $username) = $username;
        } else {
            $username = $username[key($username)];
        }

        return $username;
    }
protected function username($account)
    {
        // Username's may be prefixed with their domain,
        // we just need their account name.
        $username = explode('\\', $account);

        if (count($username) === 2) {
            list($domain, $username) = $username;
        } else {
            $username = $username[key($username)];
        }

        return $username;
    }
protected function username ( $ account ) { // Username's may be prefixed with their domain, // we just need their account name. $ username = explode ( '\\' , $ account ) ; if ( count ( $ username ) === 2 ) { list ( $ domain , $ username ) = $ username ; } else { $ username = $ username [ key ( $ username ) ] ; } return $ username ; }
Retrieves the users username from their full account name.

@param string $account

@return string
Retrieves the users username from their full account name .