@@ -234,7 +234,7 @@ |
||
| 234 | 234 | 'size' => $fs->size($tempName), |
| 235 | 235 | ]); |
| 236 | 236 | |
| 237 | - register_shutdown_function(function () use ($fs, $tempName) { |
|
| 237 | + register_shutdown_function(function() use ($fs, $tempName) { |
|
| 238 | 238 | $fs->remove($tempName); |
| 239 | 239 | }); |
| 240 | 240 | |
@@ -301,7 +301,7 @@ |
||
| 301 | 301 | * @param array $arr |
| 302 | 302 | * @param SimpleXMLElement $simpleXML |
| 303 | 303 | */ |
| 304 | - private static function composeXML(array $arr, SimpleXMLElement &$simpleXML) |
|
| 304 | + private static function composeXML(array $arr, SimpleXMLElement & $simpleXML) |
|
| 305 | 305 | { |
| 306 | 306 | foreach ($arr as $key => $value) { |
| 307 | 307 | if (is_numeric($key)) { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | $this->findPatternMatches($uri); |
| 101 | 101 | |
| 102 | 102 | if (!count($this->matchedRoutes)) { |
| 103 | - stop(function () { |
|
| 103 | + stop(function() { |
|
| 104 | 104 | $this->handleNotFound(); |
| 105 | 105 | }); |
| 106 | 106 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | if (filter_var(config()->get(Debugger::DEBUG_ENABLED), FILTER_VALIDATE_BOOLEAN)) { |
| 121 | 121 | $routeInfo = []; |
| 122 | 122 | |
| 123 | - array_walk($matchedRoute, function ($value, $key) use (&$routeInfo) { |
|
| 123 | + array_walk($matchedRoute, function($value, $key) use (&$routeInfo) { |
|
| 124 | 124 | $routeInfo[ucfirst($key)] = json_encode($value); |
| 125 | 125 | }); |
| 126 | 126 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | $routePattern = '(\/)?'; |
| 192 | 192 | $routeParams = []; |
| 193 | 193 | |
| 194 | - $lastIndex = (int)array_key_last($routeSegments); |
|
| 194 | + $lastIndex = (int) array_key_last($routeSegments); |
|
| 195 | 195 | |
| 196 | 196 | foreach ($routeSegments as $index => $segment) { |
| 197 | 197 | $segmentParam = $this->checkSegment($segment, $index, $lastIndex); |