@@ -6,10 +6,10 @@ |
||
6 | 6 | |
7 | 7 | return RectorConfig::configure() |
8 | 8 | ->withPaths([ |
9 | - __DIR__ . '/src', |
|
10 | - __DIR__ . '/tests', |
|
9 | + __DIR__.'/src', |
|
10 | + __DIR__.'/tests', |
|
11 | 11 | ]) |
12 | 12 | // uncomment to reach your current PHP version |
13 | 13 | ->withPhpSets(php83:true) |
14 | 14 | ->withAttributesSets() |
15 | - ->withPreparedSets(deadCode:true,typeDeclarations:true,codeQuality:true); |
|
15 | + ->withPreparedSets(deadCode:true, typeDeclarations:true, codeQuality:true); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | /** |
79 | 79 | * Function returns the class of corrosponding controller. |
80 | 80 | */ |
81 | - public function getController(string $controller): false|string |
|
81 | + public function getController(string $controller): false | string |
|
82 | 82 | { |
83 | 83 | if ($this->enableCache && $this->cache->has(str_replace('/', '_', $controller))) { |
84 | 84 | return $this->cache->get(str_replace('/', '_', $controller)); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | /** |
250 | 250 | * get callable using route and method. |
251 | 251 | */ |
252 | - public function getRoute(string $route, string $method): callable|bool |
|
252 | + public function getRoute(string $route, string $method): callable | bool |
|
253 | 253 | { |
254 | 254 | return $this->route[$method][$route] ?? $this->route['all'][$route] ?? false; |
255 | 255 | } |
@@ -196,7 +196,7 @@ |
||
196 | 196 | * |
197 | 197 | * @return bool|array<mixed> |
198 | 198 | */ |
199 | - private function getArguments(string $controller, string $method): bool|array |
|
199 | + private function getArguments(string $controller, string $method): bool | array |
|
200 | 200 | { |
201 | 201 | $controllerObj = new $controller(); |
202 | 202 |