protected function determineProtocolVersion()
    {
        $params = $this->getServerParams();
        
        if (isset($params['SERVER_PROTOCOL'])) {
            list($protocol, $version) = explode('/', $params['SERVER_PROTOCOL']) + [1 => null];
        }
        
        return isset($protocol) && $protocol === 'HTTP' ? $version : "1.1";
    }
protected function determineProtocolVersion()
    {
        $params = $this->getServerParams();
        
        if (isset($params['SERVER_PROTOCOL'])) {
            list($protocol, $version) = explode('/', $params['SERVER_PROTOCOL']) + [1 => null];
        }
        
        return isset($protocol) && $protocol === 'HTTP' ? $version : "1.1";
    }
protected function determineProtocolVersion ( ) { $ params = $ this -> getServerParams ( ) ; if ( isset ( $ params [ 'SERVER_PROTOCOL' ] ) ) { list ( $ protocol , $ version ) = explode ( '/' , $ params [ 'SERVER_PROTOCOL' ] ) + [ 1 => null ] ; } return isset ( $ protocol ) && $ protocol === 'HTTP' ? $ version : "1.1" ; }
Determine the protocol versions based on the server params

@return string
Determine the protocol versions based on the server params