public function hasDefaultPort(): bool
    {
        if (!$this->parsedUri->hasPort()) {
            return true;
        }

        if ($this->isHttp() && $this->parsedUri->portEquals(Http::PORT)) {
            return true;
        }

        if ($this->isHttps() && $this->parsedUri->portEquals(Http::PORT_SSL)) {
            return true;
        }

        return false;
    }
public function hasDefaultPort(): bool
    {
        if (!$this->parsedUri->hasPort()) {
            return true;
        }

        if ($this->isHttp() && $this->parsedUri->portEquals(Http::PORT)) {
            return true;
        }

        if ($this->isHttps() && $this->parsedUri->portEquals(Http::PORT_SSL)) {
            return true;
        }

        return false;
    }
public function hasDefaultPort ( ) : bool { if ( ! $ this -> parsedUri -> hasPort ( ) ) { return true ; } if ( $ this -> isHttp ( ) && $ this -> parsedUri -> portEquals ( Http :: PORT ) ) { return true ; } if ( $ this -> isHttps ( ) && $ this -> parsedUri -> portEquals ( Http :: PORT_SSL ) ) { return true ; } return false ; }
checks whether the uri uses a default port or not

Default ports are 80 for http and 443 for https

@return  bool
checks whether the uri uses a default port or not