Refactor the route finder.

This commit is contained in:
Taylor Otwell 2011-08-08 10:27:19 -05:00
parent 2aef4de8d5
commit b25edfaf9b
1 changed files with 1 additions and 4 deletions

View File

@ -18,10 +18,7 @@ class Finder {
*/ */
public static function find($name, $routes) public static function find($name, $routes)
{ {
if (array_key_exists($name, static::$names)) if (array_key_exists($name, static::$names)) return static::$names[$name];
{
return static::$names[$name];
}
$arrayIterator = new \RecursiveArrayIterator($routes); $arrayIterator = new \RecursiveArrayIterator($routes);