original_string: public function getDefaultPort()
      {
          if (!$this->hasDefaultPort()) throw new UrlException(sprintf(
              "No default port for URL '%s'",
              $this->_inputString
          ));
  
          $scheme = $this->getScheme();
          if ($scheme == 'http') return 80;
          elseif ($scheme == 'https') return 443;
          else throw new UrlException("No default port for scheme '$scheme'");
      }
code: public function getDefaultPort()
      {
          if (!$this->hasDefaultPort()) throw new UrlException(sprintf(
              "No default port for URL '%s'",
              $this->_inputString
          ));
  
          $scheme = $this->getScheme();
          if ($scheme == 'http') return 80;
          elseif ($scheme == 'https') return 443;
          else throw new UrlException("No default port for scheme '$scheme'");
      }
code_tokens: public function getDefaultPort ( ) { if ( ! $ this -> hasDefaultPort ( ) ) throw new UrlException ( sprintf ( "No default port for URL '%s'" , $ this -> _inputString ) ) ; $ scheme = $ this -> getScheme ( ) ; if ( $ scheme == 'http' ) return 80 ; elseif ( $ scheme == 'https' ) return 443 ; else throw new UrlException ( "No default port for scheme '$scheme'" ) ; }
docstring: The default TCP port for the scheme of the URL
  @return int or null
docstring_tokens: The default TCP port for the scheme of the URL