Phly\Http\Uri::isNonStandardPort PHP Method

isNonStandardPort() private method

Is a given port non-standard for the current scheme?
private isNonStandardPort ( string $scheme, string $host, integer $port ) : boolean
$scheme string
$host string
$port integer
return boolean
    private function isNonStandardPort($scheme, $host, $port)
    {
        if (!$scheme) {
            return true;
        }
        if (!$host || !$port) {
            return false;
        }
        return !isset($this->allowedSchemes[$scheme]) || $port !== $this->allowedSchemes[$scheme];
    }