@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | $methods = array_map("strtoupper", $methods); |
106 | 106 | |
107 | - array_map(function ($method) use ($uri, $callback) { |
|
107 | + array_map(function($method) use ($uri, $callback) { |
|
108 | 108 | $this->routes[$method][$uri] = $this->addRouter($uri, $callback); |
109 | 109 | }, $methods); |
110 | 110 | } |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | |
265 | 265 | $this->resolveRequestMethod(); |
266 | 266 | |
267 | - if(!isset($this->routes[$this->requestMethod])) { |
|
267 | + if (!isset($this->routes[$this->requestMethod])) { |
|
268 | 268 | $this->throwException( |
269 | 269 | "badRequest", |
270 | 270 | BadMethodCallException::class, |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | protected function resolveNestedMiddleware(Array $middlewares): void |
146 | 146 | { |
147 | - $this->queue = array_map(function ($middleware) { |
|
147 | + $this->queue = array_map(function($middleware) { |
|
148 | 148 | $middleware = trim(rtrim($middleware)); |
149 | 149 | |
150 | 150 | return $this->instanceMiddleware($middleware); |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | |
242 | 242 | return $currentMiddleware->handle( |
243 | 243 | $this->currentRequest, |
244 | - fn () => $this->next() |
|
244 | + fn() => $this->next() |
|
245 | 245 | ); |
246 | 246 | } |
247 | 247 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function where(array $matches) |
15 | 15 | { |
16 | - array_map(function ($key, $value) { |
|
16 | + array_map(function($key, $value) { |
|
17 | 17 | $this->where[$key] = $value; |
18 | 18 | }, array_keys($matches), $matches); |
19 | 19 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function name(String $name, Bool $ignoreDefault = false) |
94 | 94 | { |
95 | - if($ignoreDefault) { |
|
95 | + if ($ignoreDefault) { |
|
96 | 96 | $this->name = $name; |
97 | 97 | } else { |
98 | 98 | $this->name = $this->defaultName . $name; |