src/http/Uri.php
protected function isDefaultPort($scheme, $port)
    {
        if (!isset(self::$defaultPorts[$scheme])) {
            return false;
        }
        return self::$defaultPorts[$scheme] == $port;
    }
protected function isDefaultPort($scheme, $port)
    {
        if (!isset(self::$defaultPorts[$scheme])) {
            return false;
        }
        return self::$defaultPorts[$scheme] == $port;
    }
protected function isDefaultPort ( $ scheme , $ port ) { if ( ! isset ( self :: $ defaultPorts [ $ scheme ] ) ) { return false ; } return self :: $ defaultPorts [ $ scheme ] == $ port ; }
Checks whether specified port is default one for the specified scheme.
@param string $scheme scheme.
@param int $port port number.
@return bool whether specified port is default for specified scheme
Checks whether specified port is default one for the specified scheme .