original_string: protected function match($method, $uri)
      {
          $result = null;
  
          foreach ((array) $this->router->routes() as $route)
          {
              $matched = preg_match($route->regex(), $uri, $matches);
  
              if ($matched && $route->method() === $method)
              {
                  return array($matches, $route);
              }
          }
  
          return $result;
      }
code: protected function match($method, $uri)
      {
          $result = null;
  
          foreach ((array) $this->router->routes() as $route)
          {
              $matched = preg_match($route->regex(), $uri, $matches);
  
              if ($matched && $route->method() === $method)
              {
                  return array($matches, $route);
              }
          }
  
          return $result;
      }
code_tokens: protected function match ( $ method , $ uri ) { $ result = null ; foreach ( ( array ) $ this -> router -> routes ( ) as $ route ) { $ matched = preg_match ( $ route -> regex ( ) , $ uri , $ matches ) ; if ( $ matched && $ route -> method ( ) === $ method ) { return array ( $ matches , $ route ) ; } } return $ result ; }
docstring: Matches the route from the parsed URI.
  
  @param  string $method
  @param  string $uri
  @return array|null
docstring_tokens: Matches the route from the parsed URI .