From 775f11e09b192163a172aeeb4ac1b18342df1941 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 7 Jul 2011 09:24:40 -0700 Subject: [PATCH] Refactoring Route\Finder. --- system/route/finder.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/route/finder.php b/system/route/finder.php index 2edf5bd1..fb997e5c 100644 --- a/system/route/finder.php +++ b/system/route/finder.php @@ -34,8 +34,7 @@ public static function find($name) return static::$names[$name]; } - $arrayIterator = new \RecursiveArrayIterator(static::$routes); - $recursiveIterator = new \RecursiveIteratorIterator($arrayIterator); + $recursiveIterator = new \RecursiveIteratorIterator($arrayIterator = new \RecursiveArrayIterator(static::$routes)); foreach ($recursiveIterator as $iterator) {