src/Uri.php
private function isUsingStandardPort(): bool
    {
        return $this->port === null ||
            (($this->scheme === 'http' && $this->port === 80) || ($this->scheme === 'https' && $this->port === 443));
    }
private function isUsingStandardPort(): bool
    {
        return $this->port === null ||
            (($this->scheme === 'http' && $this->port === 80) || ($this->scheme === 'https' && $this->port === 443));
    }
Gets whether or not a standard port is being used for the scheme

@return bool True if using a standard port, otherwise false