public function route(Request $request) {
        $url_decoded = urldecode( $request->url );
        while ($route = $this->current()) {
            if ($route !== false && $route->matchMethod($request->method) && $route->matchUrl($url_decoded, $this->case_sensitive)) {
                return $route;
            }
            $this->next();
        }

        return false;
    }
public function route(Request $request) {
        $url_decoded = urldecode( $request->url );
        while ($route = $this->current()) {
            if ($route !== false && $route->matchMethod($request->method) && $route->matchUrl($url_decoded, $this->case_sensitive)) {
                return $route;
            }
            $this->next();
        }

        return false;
    }
public function route ( Request $ request ) { $ url_decoded = urldecode ( $ request -> url ) ; while ( $ route = $ this -> current ( ) ) { if ( $ route !== false && $ route -> matchMethod ( $ request -> method ) && $ route -> matchUrl ( $ url_decoded , $ this -> case_sensitive ) ) { return $ route ; } $ this -> next ( ) ; } return false ; }
Routes the current request.

@param Request $request Request object
@return Route|bool Matching route or false if no match
Routes the current request .