Browse Source

Derp. forgot to close function.

Brian French 7 years ago
parent
commit
3cf4efbd59
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/Routing/RouteBuilder.php

+ 7 - 7
src/Routing/RouteBuilder.php

@@ -753,21 +753,21 @@ class RouteBuilder
             switch (count($matches)) {
                 case 2:
                     return [
-                        'controller' => (isset($matches[3] ? $matches[3] : null),
-                        'action' => (isset($matches[4] ? $matches[4] : null)
+                        'controller' => (isset($matches[3]) ? $matches[3] : null),
+                        'action' => (isset($matches[4]) ? $matches[4] : null)
                     ];
                 case 3:
                     return [
                         'prefix' => (isset($matches[2]) ? strtolower($matches[2]) : null),
-                        'controller' => (isset($matches[3] ? $matches[3] : null),
-                        'action' => (isset($matches[4] ? $matches[4] : null)
+                        'controller' => (isset($matches[3]) ? $matches[3] : null),
+                        'action' => (isset($matches[4]) ? $matches[4] : null)
                     ];
                 case 4:
                     return [
-                        'plugin' => (isset($matches[1] ? $matches[1] : null),
+                        'plugin' => (isset($matches[1]) ? $matches[1] : null),
                         'prefix' => (isset($matches[2]) ? strtolower($matches[2]) : null),
-                        'controller' => (isset($matches[3] ? $matches[3] : null),
-                        'action' => (isset($matches[4] ? $matches[4] : null)
+                        'controller' => (isset($matches[3]) ? $matches[3] : null),
+                        'action' => (isset($matches[4]) ? $matches[4] : null)
                     ];
             }
         }