@@ -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()); |
@@ -86,7 +86,7 @@ |
||
86 | 86 | */ |
87 | 87 | private function generateRandomKey(): string |
88 | 88 | { |
89 | - return base64_encode(random_bytes((int)$this->getOption('length'))); |
|
89 | + return base64_encode(random_bytes((int) $this->getOption('length'))); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | public function exec() |
65 | 65 | { |
66 | 66 | $direction = $this->getArgument('direction') ?: MigrationManager::UPGRADE; |
67 | - $step = (int)$this->getOption('step') ?: null; |
|
67 | + $step = (int) $this->getOption('step') ?: null; |
|
68 | 68 | |
69 | 69 | $migrationManager = new MigrationManager(); |
70 | 70 |
@@ -90,13 +90,13 @@ |
||
90 | 90 | Config::getInstance()->load(new Setup('config', 'config')); |
91 | 91 | |
92 | 92 | if (config()->get('multilang')) { |
93 | - Lang::getInstance((int)config()->get(Lang::LANG_SEGMENT))->load(); |
|
93 | + Lang::getInstance((int) config()->get(Lang::LANG_SEGMENT))->load(); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | return $this->application->run($input, $output); |
97 | 97 | } catch (\Throwable $throwable) { |
98 | 98 | $output->writeln("<error>" . $throwable->getMessage() . "</error>"); |
99 | - return (int)$throwable->getCode(); |
|
99 | + return (int) $throwable->getCode(); |
|
100 | 100 | } |
101 | 101 | } |
102 | 102 |