code: protected function hasStandardPort(): bool
      {
          return ($this->scheme === 'http' && $this->port === 80) || ($this->scheme === 'https' && $this->port === 443);
      }
docs: cek if current uri scheme use standard port
  
  @access protected