src/Core/User.php
function getFirstName($displayname=null) {
        if ( $displayname === null ) $displayname = $this->getNameAndEmail();
        if ( $displayname === null ) return null;
        $pieces = explode(' ',$displayname);
        if ( count($pieces) > 0 ) return $pieces[0];
        return null;
    }
function getFirstName($displayname=null) {
        if ( $displayname === null ) $displayname = $this->getNameAndEmail();
        if ( $displayname === null ) return null;
        $pieces = explode(' ',$displayname);
        if ( count($pieces) > 0 ) return $pieces[0];
        return null;
    }
function getFirstName ( $ displayname = null ) { if ( $ displayname === null ) $ displayname = $ this -> getNameAndEmail ( ) ; if ( $ displayname === null ) return null ; $ pieces = explode ( ' ' , $ displayname ) ; if ( count ( $ pieces ) > 0 ) return $ pieces [ 0 ] ; return null ; }
Get the user's first name, falling back to email
Get the user s first name falling back to email