original_string: protected function fastCheck(array $routes, $request)
      {
          $domain = $request->getHost();
  
          $path = ($request->path() == '/') ? '/' : '/' .$request->path();
  
          foreach (array($domain .$path, $path) as $key) {
              $route = Arr::get($routes, $key);
  
              if (! is_null($route) && $route->matches($request, true)) {
                  return $route;
              }
          }
      }
code: protected function fastCheck(array $routes, $request)
      {
          $domain = $request->getHost();
  
          $path = ($request->path() == '/') ? '/' : '/' .$request->path();
  
          foreach (array($domain .$path, $path) as $key) {
              $route = Arr::get($routes, $key);
  
              if (! is_null($route) && $route->matches($request, true)) {
                  return $route;
              }
          }
      }
code_tokens: protected function fastCheck ( array $ routes , $ request ) { $ domain = $ request -> getHost ( ) ; $ path = ( $ request -> path ( ) == '/' ) ? '/' : '/' . $ request -> path ( ) ; foreach ( array ( $ domain . $ path , $ path ) as $ key ) { $ route = Arr :: get ( $ routes , $ key ) ; if ( ! is_null ( $ route ) && $ route -> matches ( $ request , true ) ) { return $ route ; } } }
docstring: Determine if a route in the array fully matches the request - the fast way.
  
  @param  array  $routes
  @param  \Nova\http\Request  $request
  @return \Nova\Routing\Route|null
docstring_tokens: Determine if a route in the array fully matches the request - the fast way .