original_string: public function getPort()
      {
          if (empty($this->port)) {
              if (array_key_exists($this->scheme, static::$defaultPorts)) {
                  return static::$defaultPorts[$this->scheme];
              }
          }
  
          return $this->port;
      }
code: public function getPort()
      {
          if (empty($this->port)) {
              if (array_key_exists($this->scheme, static::$defaultPorts)) {
                  return static::$defaultPorts[$this->scheme];
              }
          }
  
          return $this->port;
      }
code_tokens: public function getPort ( ) { if ( empty ( $ this -> port ) ) { if ( array_key_exists ( $ this -> scheme , static :: $ defaultPorts ) ) { return static :: $ defaultPorts [ $ this -> scheme ] ; } } return $ this -> port ; }
docstring: Return the URI port
  
  If no port is set, will return the default port according to the scheme
  
  @return integer
docstring_tokens: Return the URI port