diff --git a/system/routing/loader.php b/system/routing/loader.php index 43414cc2..a7b2af5a 100644 --- a/system/routing/loader.php +++ b/system/routing/loader.php @@ -86,10 +86,7 @@ class Loader { foreach ($paths as $path) { - if (file_exists($path.'routes'.EXT)) - { - $routes = array_merge($routes, require $path.'routes'.EXT); - } + if (file_exists($path.'routes'.EXT)) $routes = array_merge($routes, require $path.'routes'.EXT); if (is_dir($path.'routes')) { @@ -101,10 +98,7 @@ class Loader { foreach ($recursiveIterator as $file) { - if (filetype($file) === 'file' and strpos($file, EXT) !== false) - { - $routes = array_merge($routes, require $file); - } + if (filetype($file) === 'file' and strpos($file, EXT) !== false) $routes = array_merge($routes, require $file); } } }