src/Request.php
public function getPort()
    {
        if ($this->_port === null) {
            $this->_port = !$this->isSecureConnection() && isset($_SERVER['SERVER_PORT']) ? (int)$_SERVER['SERVER_PORT'] : 80;
        }
        return $this->_port;
    }
public function getPort()
    {
        if ($this->_port === null) {
            $this->_port = !$this->isSecureConnection() && isset($_SERVER['SERVER_PORT']) ? (int)$_SERVER['SERVER_PORT'] : 80;
        }
        return $this->_port;
    }
public function getPort ( ) { if ( $ this -> _port === null ) { $ this -> _port = ! $ this -> isSecureConnection ( ) && isset ( $ _SERVER [ 'SERVER_PORT' ] ) ? ( int ) $ _SERVER [ 'SERVER_PORT' ] : 80 ; } return $ this -> _port ; }
Returns the port to use for insecure requests.

Defaults to 80, or the port specified by the server if the current
request is insecure.
@return integer port number for insecure requests.
@see setPort()
Returns the port to use for insecure requests .