original_string: 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";
      }
code: 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";
      }
code_tokens: 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" ; }
docstring: Determine the protocol versions based on the server params
  
  @return string
docstring_tokens: Determine the protocol versions based on the server params