original_string: private static function treat(Route $route, $params)
      {
          // in case of get request or post request
          if (($route->getMethod() == 'post' && Request::isPost()) || ($route->getMethod() == 'get') || ($route->getMethod() == 'resource') || ($route->getMethod() == 'call')) {
              return static::execute($route, $params);
          }
  
          return false;
      }
code: private static function treat(Route $route, $params)
      {
          // in case of get request or post request
          if (($route->getMethod() == 'post' && Request::isPost()) || ($route->getMethod() == 'get') || ($route->getMethod() == 'resource') || ($route->getMethod() == 'call')) {
              return static::execute($route, $params);
          }
  
          return false;
      }
code_tokens: private static function treat ( Route $ route , $ params ) { // in case of get request or post request if ( ( $ route -> getMethod ( ) == 'post' && Request :: isPost ( ) ) || ( $ route -> getMethod ( ) == 'get' ) || ( $ route -> getMethod ( ) == 'resource' ) || ( $ route -> getMethod ( ) == 'call' ) ) { return static :: execute ( $ route , $ params ) ; } return false ; }
docstring: Treat the request according to it's method.
  
  @param Route $route
  @param array $params
  
  @return bool
docstring_tokens: Treat the request according to it s method .