protected function aliasUserRoles($args)
    {
        if (in_array('all', $args)) {
            $args = $this->getUserRoles();
        }
        if (in_array('all-not-admin', $args)) {
            $args = $this->getUserRoles(false);
        }
        $args = preg_replace('/\badmin\b/', 'administrator', $args);
        return $args;
    }
protected function aliasUserRoles($args)
    {
        if (in_array('all', $args)) {
            $args = $this->getUserRoles();
        }
        if (in_array('all-not-admin', $args)) {
            $args = $this->getUserRoles(false);
        }
        $args = preg_replace('/\badmin\b/', 'administrator', $args);
        return $args;
    }
protected function aliasUserRoles ( $ args ) { if ( in_array ( 'all' , $ args ) ) { $ args = $ this -> getUserRoles ( ) ; } if ( in_array ( 'all-not-admin' , $ args ) ) { $ args = $ this -> getUserRoles ( false ) ; } $ args = preg_replace ( '/\badmin\b/' , 'administrator' , $ args ) ; return $ args ; }
Alias user roles 'all' and 'all-not-admin'
Replace short-hand 'admin' with 'administrator'

@param string|array $args
@return string|array
Alias user roles all and all - not - admin Replace short - hand admin with administrator