Commit b25edfaf authored by Taylor Otwell's avatar Taylor Otwell

Refactor the route finder.

parent 2aef4de8
......@@ -18,10 +18,7 @@ class Finder {
*/
public static function find($name, $routes)
{
if (array_key_exists($name, static::$names))
{
return static::$names[$name];
}
if (array_key_exists($name, static::$names)) return static::$names[$name];
$arrayIterator = new \RecursiveArrayIterator($routes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment