@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | $this->findPatternMatches($uri); |
| 101 | 101 | |
| 102 | 102 | if (!count($this->matchedRoutes)) { |
| 103 | - stop(function () { |
|
| 103 | + stop(function() { |
|
| 104 | 104 | $this->handleNotFound(); |
| 105 | 105 | }); |
| 106 | 106 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | { |
| 156 | 156 | $routeInfo = []; |
| 157 | 157 | |
| 158 | - array_walk($currentRoute, function ($value, $key) use (&$routeInfo) { |
|
| 158 | + array_walk($currentRoute, function($value, $key) use (&$routeInfo) { |
|
| 159 | 159 | $routeInfo[ucfirst($key)] = json_encode($value); |
| 160 | 160 | }); |
| 161 | 161 | |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | $routePattern = '(\/)?'; |
| 200 | 200 | $routeParams = []; |
| 201 | 201 | |
| 202 | - $lastIndex = (int)array_key_last($routeSegments); |
|
| 202 | + $lastIndex = (int) array_key_last($routeSegments); |
|
| 203 | 203 | |
| 204 | 204 | foreach ($routeSegments as $index => $segment) { |
| 205 | 205 | $segmentParam = $this->checkSegment($segment, $index, $lastIndex); |