Passed
Pull Request — master (#150)
by Arman
05:02 queued 02:35
created
src/Router/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         $this->matchedRoutes = $this->findMatches($uri);
103 103
 
104 104
         if (empty($this->matchedRoutes)) {
105
-            stop(function () {
105
+            stop(function() {
106 106
                 $this->handleNotFound();
107 107
             });
108 108
         }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         $routePattern = '(\/)?';
204 204
         $routeParams = [];
205 205
 
206
-        $lastIndex = (int)array_key_last($routeSegments);
206
+        $lastIndex = (int) array_key_last($routeSegments);
207 207
 
208 208
         foreach ($routeSegments as $index => $segment) {
209 209
             $segmentParam = $this->getSegmentParam($segment, $index, $lastIndex);
Please login to merge, or discard this patch.