Completed
Pull Request — master (#13)
by
unknown
02:38 queued 42s
created
Mezon/Router/UrlParser.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     {
258 258
         $routerTrimmed = trim($router, '/');
259 259
 
260
-        if (! isset($this->middleware[$routerTrimmed])) {
260
+        if (!isset($this->middleware[$routerTrimmed])) {
261 261
             $this->middleware[$routerTrimmed] = [];
262 262
         }
263 263
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
             $this->parameters
289 289
         ];
290 290
 
291
-        if (! count($middleWares)) {
291
+        if (!count($middleWares)) {
292 292
             return $result;
293 293
         }
294 294
 
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
      *            Route
349 349
      * @return array|callable|bool route handler
350 350
      */
351
-    protected function getStaticRouteProcessor(string $route , $universal)
351
+    protected function getStaticRouteProcessor(string $route, $universal)
352 352
     {
353 353
         $processors = $this->staticRoutes[$_SERVER['REQUEST_METHOD']];
354 354
 
@@ -374,9 +374,9 @@  discard block
 block discarded – undo
374 374
      *            Route
375 375
      * @return mixed Result of the router processor
376 376
      */
377
-    public function findStaticRouteProcessor(string $route , $universal = false)
377
+    public function findStaticRouteProcessor(string $route, $universal = false)
378 378
     {
379
-        $processor = $this->getStaticRouteProcessor($route , $universal);
379
+        $processor = $this->getStaticRouteProcessor($route, $universal);
380 380
 
381 381
         if ($processor === false) {
382 382
             return false;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -358,8 +358,7 @@
 block discarded – undo
358 358
             } else {
359 359
                 return false;
360 360
             }
361
-        }
362
-        else {
361
+        } else {
363 362
             $processor = $processors['*'];
364 363
         }
365 364
         
Please login to merge, or discard this patch.