Amp\Artax\Uri::normalizeDefaultPort PHP Method

normalizeDefaultPort() private method

"URI producers and normalizers should omit the port component and its ":" delimiter if port is empty or if its value would be the same as that of the scheme's default."
private normalizeDefaultPort ( )
    private function normalizeDefaultPort()
    {
        switch ($this->scheme) {
            case 'http':
                $this->port = $this->port == 80 ? '' : $this->port;
                break;
            case 'https':
                $this->port = $this->port == 443 ? '' : $this->port;
                break;
            case 'ftp':
                $this->port = $this->port == 21 ? '' : $this->port;
                break;
            case 'ftps':
                $this->port = $this->port == 990 ? '' : $this->port;
                break;
            case 'smtp':
                $this->port = $this->port == 25 ? '' : $this->port;
                break;
        }
    }