src/Common/Endpoint/Uri.php
private static function isStandardPort($port, $scheme = null, $host = null)
    {
        if ($host === null || $scheme === null) {
            return false;
        }

        return array_key_exists($scheme, static::$schemes) && $port === static::$schemes[$scheme];
    }
private static function isStandardPort($port, $scheme = null, $host = null)
    {
        if ($host === null || $scheme === null) {
            return false;
        }

        return array_key_exists($scheme, static::$schemes) && $port === static::$schemes[$scheme];
    }
private static function isStandardPort ( $ port , $ scheme = null , $ host = null ) { if ( $ host === null || $ scheme === null ) { return false ; } return array_key_exists ( $ scheme , static :: $ schemes ) && $ port === static :: $ schemes [ $ scheme ] ; }
Is a given port standard for the current scheme?

@param int    $port
@param string $scheme
@param string $host

@return bool
Is a given port standard for the current scheme?