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;
    }
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;
    }
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 ; }
Treat the request according to it's method.

@param Route $route
@param array $params

@return bool
Treat the request according to it s method .