@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace inroutephp\inroute\Runtime\Middleware; |
6 | 6 | |
@@ -19,13 +19,13 @@ discard block |
||
19 | 19 | |
20 | 20 | public function __construct(MiddlewareInterface ...$middlewares) |
21 | 21 | { |
22 | - $this->handler = new CallbackHandler(function () { |
|
22 | + $this->handler = new CallbackHandler(function() { |
|
23 | 23 | throw new DispatchException('unresolved request: middleware stack exhausted with no result'); |
24 | 24 | }); |
25 | 25 | |
26 | 26 | foreach (array_reverse($middlewares) as $middleware) { |
27 | 27 | $inner = $this->handler; |
28 | - $this->handler = new CallbackHandler(function (ServerRequestInterface $request) use ($middleware, $inner) { |
|
28 | + $this->handler = new CallbackHandler(function(ServerRequestInterface $request) use ($middleware, $inner) { |
|
29 | 29 | return $middleware->process($request, $inner); |
30 | 30 | }); |
31 | 31 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace inroutephp\inroute\Runtime\Middleware; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace inroutephp\inroute\Runtime\Middleware; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace inroutephp\inroute\Runtime\Exception; |
6 | 6 |