original_string: public function defaultPort($port = null)
      {
          if (!is_null($port)) {
              $this->defaultPort = (int)$port;
              if ($this->url['port'] === null) {
                  $this->url['port'] = $this->defaultPort;
              }
          }
  
          return $this->defaultPort;
      }
code: public function defaultPort($port = null)
      {
          if (!is_null($port)) {
              $this->defaultPort = (int)$port;
              if ($this->url['port'] === null) {
                  $this->url['port'] = $this->defaultPort;
              }
          }
  
          return $this->defaultPort;
      }
code_tokens: public function defaultPort ( $ port = null ) { if ( ! is_null ( $ port ) ) { $ this -> defaultPort = ( int ) $ port ; if ( $ this -> url [ 'port' ] === null ) { $ this -> url [ 'port' ] = $ this -> defaultPort ; } } return $ this -> defaultPort ; }
docstring: Get or set the default port
  
  @param int $port
  @return int
docstring_tokens: Get or set the default port