@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | $methods = array_map("strtoupper", $methods); |
| 126 | 126 | |
| 127 | - array_map(function ($method) use ($uri, $callback) { |
|
| 127 | + array_map(function($method) use ($uri, $callback) { |
|
| 128 | 128 | $this->routes[$method][$uri] = $this->addRouter($uri, $callback); |
| 129 | 129 | }, $methods); |
| 130 | 130 | } |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | protected function dispatchRoute(): ?\Closure |
| 323 | 323 | { |
| 324 | 324 | if (!$route = $this->currentRoute) { |
| 325 | - if($fallbackRoute = $this->getByName('fallback')) { |
|
| 325 | + if ($fallbackRoute = $this->getByName('fallback')) { |
|
| 326 | 326 | return $this->executeRoute($fallbackRoute); |
| 327 | 327 | } |
| 328 | 328 | |