@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | { |
51 | 51 | $return = ''; |
52 | 52 | |
53 | - for ($n = 0; $n <= $i; $n ++) { |
|
53 | + for ($n = 0; $n <= $i; $n++) { |
|
54 | 54 | $return .= '()'; |
55 | 55 | } |
56 | 56 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | private function compileRegexpForBunch(array &$bunch): void |
66 | 66 | { |
67 | - if (! empty($bunch['bunch'])) { |
|
67 | + if (!empty($bunch['bunch'])) { |
|
68 | 68 | $bunch['regexp'] = ''; |
69 | 69 | $hashTable = []; |
70 | 70 | $items = []; |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | */ |
102 | 102 | private function compileRegexpForBunches(): void |
103 | 103 | { |
104 | - if (! $this->regExpsWereCompiled) { |
|
104 | + if (!$this->regExpsWereCompiled) { |
|
105 | 105 | foreach (self::getListOfSupportedRequestMethods() as $requestMethod) { |
106 | 106 | foreach ($this->paramRoutes[$requestMethod] as &$bunch) { |
107 | 107 | $this->compileRegexpForBunch($bunch); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $this->paramRoutes[$requestMethod][] = [ |
138 | 138 | 'bunch' => [] |
139 | 139 | ]; |
140 | - $bunchCursor ++; |
|
140 | + $bunchCursor++; |
|
141 | 141 | $lastBunchSize = 0; |
142 | 142 | } |
143 | 143 | |
@@ -265,12 +265,12 @@ discard block |
||
265 | 265 | $requestMethod . ' : ' |
266 | 266 | ]; |
267 | 267 | $hasRoutes = false; |
268 | - if (! empty($this->staticRoutes[$requestMethod])) { |
|
268 | + if (!empty($this->staticRoutes[$requestMethod])) { |
|
269 | 269 | $trace[] = implode(', ', array_keys($this->staticRoutes[$requestMethod])); |
270 | 270 | $trace[] = ', '; |
271 | 271 | $hasRoutes = true; |
272 | 272 | } |
273 | - if (! empty($this->paramRoutes[$requestMethod])) { |
|
273 | + if (!empty($this->paramRoutes[$requestMethod])) { |
|
274 | 274 | foreach ($this->paramRoutes[$requestMethod] as $bunch) { |
275 | 275 | $items = []; |
276 | 276 | foreach ($bunch['bunch'] as $item) { |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | } |
282 | 282 | } |
283 | 283 | |
284 | - if (! $hasRoutes) { |
|
284 | + if (!$hasRoutes) { |
|
285 | 285 | $trace[] = '<none>'; |
286 | 286 | } |
287 | 287 |