original_string: public function getMethod()
      {
          $fakeMethod = $this->params['_method'];
  
          if ($fakeMethod) {
              if (in_array($fakeMethod, $this->acceptedMethods)) {
                  return $fakeMethod;
              }
  
              throw new Exceptions\InvalidRequestMethodException(
                  "'$fakeMethod' is not a valid request method"
              );
          }
  
          return  $this->environment['REQUEST_METHOD'];
      }
code: public function getMethod()
      {
          $fakeMethod = $this->params['_method'];
  
          if ($fakeMethod) {
              if (in_array($fakeMethod, $this->acceptedMethods)) {
                  return $fakeMethod;
              }
  
              throw new Exceptions\InvalidRequestMethodException(
                  "'$fakeMethod' is not a valid request method"
              );
          }
  
          return  $this->environment['REQUEST_METHOD'];
      }
code_tokens: public function getMethod ( ) { $ fakeMethod = $ this -> params [ '_method' ] ; if ( $ fakeMethod ) { if ( in_array ( $ fakeMethod , $ this -> acceptedMethods ) ) { return $ fakeMethod ; } throw new Exceptions \ InvalidRequestMethodException ( "'$fakeMethod' is not a valid request method" ) ; } return $ this -> environment [ 'REQUEST_METHOD' ] ; }
docstring: Get the request method
  @return string
docstring_tokens: Get the request method