original_string: public function match($method, $url)
  	{
  		$params = array();
  
  		foreach ($this->routes as $name => $route)
  		{
  			if ($route->isMatch($method, $url))
  			{
  				$params = $route->getMatchedParams();
  				break;
  			}
  		}
  
  		return $params;
  	}
code: public function match($method, $url)
  	{
  		$params = array();
  
  		foreach ($this->routes as $name => $route)
  		{
  			if ($route->isMatch($method, $url))
  			{
  				$params = $route->getMatchedParams();
  				break;
  			}
  		}
  
  		return $params;
  	}
code_tokens: public function match ( $ method , $ url ) { $ params = array ( ) ; foreach ( $ this -> routes as $ name => $ route ) { if ( $ route -> isMatch ( $ method , $ url ) ) { $ params = $ route -> getMatchedParams ( ) ; break ; } } return $ params ; }
docstring: Loops through all of the registered routes and tries to find a match.
  
  @param  string $method   The http request method
  @param  string $url      The url to match
  @return array            An array of matches params or an empty array
docstring_tokens: Loops through all of the registered routes and tries to find a match .