Passed
Branch master (5a7b25)
by Arman
03:56
created
src/Router/Router.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.