original_string: private static function getRequestMethod()
      {
          $method = isset($_SERVER['REQUEST_METHOD'])
              ? strtoupper($_SERVER['REQUEST_METHOD'])
              : 'GET';
  
          if ('POST' === $method && isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) {
              $method = strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']);
          }
  
          return $method;
      }
code: private static function getRequestMethod()
      {
          $method = isset($_SERVER['REQUEST_METHOD'])
              ? strtoupper($_SERVER['REQUEST_METHOD'])
              : 'GET';
  
          if ('POST' === $method && isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) {
              $method = strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']);
          }
  
          return $method;
      }
code_tokens: private static function getRequestMethod ( ) { $ method = isset ( $ _SERVER [ 'REQUEST_METHOD' ] ) ? strtoupper ( $ _SERVER [ 'REQUEST_METHOD' ] ) : 'GET' ; if ( 'POST' === $ method && isset ( $ _SERVER [ 'HTTP_X_HTTP_METHOD_OVERRIDE' ] ) ) { $ method = strtoupper ( $ _SERVER [ 'HTTP_X_HTTP_METHOD_OVERRIDE' ] ) ; } return $ method ; }
docstring: Returns the method used to submit the request to the server.
  
  @return string The request method
docstring_tokens: Returns the method used to submit the request to the server .