Passed
Push — master ( a4ddd3...82bd79 )
by Alex
06:44
created
Mezon/Router/SimpleRoutesSet.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 namespace Mezon\Router;
4 4
 
5 5
 /**
@@ -102,12 +102,12 @@  discard block
 block discarded – undo
102 102
                 $requestMethod . ' : '
103 103
             ];
104 104
             $hasRoutes = false;
105
-            if (! empty($this->staticRoutes[$requestMethod])) {
105
+            if (!empty($this->staticRoutes[$requestMethod])) {
106 106
                 $trace[] = implode(', ', array_keys($this->staticRoutes[$requestMethod]));
107 107
                 $trace[] = ', ';
108 108
                 $hasRoutes = true;
109 109
             }
110
-            if (! empty($this->paramRoutes[$requestMethod])) {
110
+            if (!empty($this->paramRoutes[$requestMethod])) {
111 111
                 $items = [];
112 112
                 foreach ($this->paramRoutes[$requestMethod] as $item) {
113 113
                     $items[] = $item['pattern'];
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                 }
117 117
             }
118 118
 
119
-            if (! $hasRoutes) {
119
+            if (!$hasRoutes) {
120 120
                 $trace[] = '<none>';
121 121
             }
122 122
 
Please login to merge, or discard this patch.
Mezon/Router/StaticRoutes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 namespace Mezon\Router;
4 4
 
5 5
 /**
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     {
39 39
         $requestMethod = (string) $_SERVER['REQUEST_METHOD'];
40 40
 
41
-        if (! isset($this->staticRoutes[$requestMethod])) {
41
+        if (!isset($this->staticRoutes[$requestMethod])) {
42 42
             throw (new \Exception('Unsupported request method : ' . $requestMethod, - 1));
43 43
         }
44 44
 
Please login to merge, or discard this patch.
Mezon/Router/InvalidRouteErrorHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 namespace Mezon\Router;
4 4
 
5 5
 /**
Please login to merge, or discard this patch.
Mezon/Router/SuppportedRequestMethods.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 namespace Mezon\Router;
4 4
 
5 5
 /**
Please login to merge, or discard this patch.
Mezon/Router/SimpleRouter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 namespace Mezon\Router;
4 4
 
5 5
 /**
Please login to merge, or discard this patch.
Mezon/Router/RouteTypes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 namespace Mezon\Router;
4 4
 
5 5
 /**
Please login to merge, or discard this patch.