protected function getUserString()
    {
        $user = $this->core->auth()->user();

        if ( ! $user) return null;

        return $user->getUsername();
    }
protected function getUserString()
    {
        $user = $this->core->auth()->user();

        if ( ! $user) return null;

        return $user->getUsername();
    }
protected function getUserString ( ) { $ user = $ this -> core -> auth ( ) -> user ( ) ; if ( ! $ user ) return null ; return $ user -> getUsername ( ) ; }
Returns user name for currently logged in user, if known.

@return null|string
Returns user name for currently logged in user if known .