src/AbstractUrl.php
protected static function fetchServerPort(array $server)
    {
        $port = '';
        if (isset($server['SERVER_PORT']) && '80' != $server['SERVER_PORT']) {
            $port = ':'. (int) $server['SERVER_PORT'];
        }

        return $port;
    }
protected static function fetchServerPort(array $server)
    {
        $port = '';
        if (isset($server['SERVER_PORT']) && '80' != $server['SERVER_PORT']) {
            $port = ':'. (int) $server['SERVER_PORT'];
        }

        return $port;
    }
protected static function fetchServerPort ( array $ server ) { $ port = '' ; if ( isset ( $ server [ 'SERVER_PORT' ] ) && '80' != $ server [ 'SERVER_PORT' ] ) { $ port = ':' . ( int ) $ server [ 'SERVER_PORT' ] ; } return $ port ; }
Return the Server URL port component

@param array $server the server array

@return string
Return the Server URL port component