Passed
Push — master ( 4cfdc5...37c7d0 )
by Alex
07:00
created
Mezon/Router/SimpleUrlParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         foreach ($routes as $item) {
96 96
             $matches = [];
97 97
 
98
-            if (preg_match('/^'.$this->_getRouteMatcherRegExPattern($item['pattern']).'$/', $route, $matches)) {
98
+            if (preg_match('/^' . $this->_getRouteMatcherRegExPattern($item['pattern']) . '$/', $route, $matches)) {
99 99
                 $names = $this->_getParameterNames($item['pattern']);
100 100
 
101 101
                 $this->parameters = [];
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     {
185 185
         $routerTrimmed = trim($router, '/');
186 186
 
187
-        if (! isset($this->middleware[$routerTrimmed])) {
187
+        if (!isset($this->middleware[$routerTrimmed])) {
188 188
             $this->middleware[$routerTrimmed] = [];
189 189
         }
190 190
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             $this->parameters
216 216
         ];
217 217
 
218
-        if (! count($middleWares)) {
218
+        if (!count($middleWares)) {
219 219
             return $result;
220 220
         }
221 221
 
Please login to merge, or discard this patch.