@@ -327,7 +327,7 @@ |
||
| 327 | 327 | */ |
| 328 | 328 | private function columnKey(): int |
| 329 | 329 | { |
| 330 | - return (int)array_key_last($this->columns); |
|
| 330 | + return (int) array_key_last($this->columns); |
|
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $this->findPatternMatches($uri); |
| 100 | 100 | |
| 101 | 101 | if (!count($this->matchedRoutes)) { |
| 102 | - stop(function () { |
|
| 102 | + stop(function() { |
|
| 103 | 103 | $this->response->html(partial('errors/404'), 404); |
| 104 | 104 | }); |
| 105 | 105 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | if (filter_var(config()->get(Debugger::DEBUG_ENABLED), FILTER_VALIDATE_BOOLEAN)) { |
| 120 | 120 | $routeInfo = []; |
| 121 | 121 | |
| 122 | - array_walk($matchedRoute, function ($value, $key) use (&$routeInfo) { |
|
| 122 | + array_walk($matchedRoute, function($value, $key) use (&$routeInfo) { |
|
| 123 | 123 | $routeInfo[ucfirst($key)] = json_encode($value); |
| 124 | 124 | }); |
| 125 | 125 | |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | $routePattern = '(\/)?'; |
| 194 | 194 | $routeParams = []; |
| 195 | 195 | |
| 196 | - $lastIndex = (int)array_key_last($routeSegments); |
|
| 196 | + $lastIndex = (int) array_key_last($routeSegments); |
|
| 197 | 197 | |
| 198 | 198 | foreach ($routeSegments as $index => $segment) { |
| 199 | 199 | $segmentParam = $this->checkSegment($segment, $index, $lastIndex); |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | $router->findRoute(); |
| 75 | 75 | |
| 76 | 76 | if (config()->get('multilang')) { |
| 77 | - Lang::getInstance((int)config()->get(Lang::LANG_SEGMENT))->load(); |
|
| 77 | + Lang::getInstance((int) config()->get(Lang::LANG_SEGMENT))->load(); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | Debugger::addToStore(Debugger::HOOKS, LogLevel::INFO, HookManager::getRegistered()); |