@@ -7,12 +7,12 @@ |
||
7 | 7 | |
8 | 8 | interface Middleware |
9 | 9 | { |
10 | - /** |
|
11 | - * @param ServerRequestInterface $request |
|
12 | - * @param ResponseInterface $response |
|
13 | - * @param callable $next |
|
14 | - * |
|
15 | - * @return ResponseInterface |
|
16 | - */ |
|
17 | - public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) : ResponseInterface; |
|
10 | + /** |
|
11 | + * @param ServerRequestInterface $request |
|
12 | + * @param ResponseInterface $response |
|
13 | + * @param callable $next |
|
14 | + * |
|
15 | + * @return ResponseInterface |
|
16 | + */ |
|
17 | + public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) : ResponseInterface; |
|
18 | 18 | } |
@@ -4,5 +4,5 @@ |
||
4 | 4 | |
5 | 5 | interface FormatterInterface |
6 | 6 | { |
7 | - public function format(\Throwable $e): array; |
|
7 | + public function format(\Throwable $e): array; |
|
8 | 8 | } |
@@ -39,9 +39,9 @@ discard block |
||
39 | 39 | $this->getContainer()->share('emitter', SapiEmitter::class); |
40 | 40 | |
41 | 41 | foreach ($this->serviceProviders as $serviceProvider) |
42 | - { |
|
43 | - $this->getContainer()->addServiceProvider($serviceProvider); |
|
44 | - } |
|
42 | + { |
|
43 | + $this->getContainer()->addServiceProvider($serviceProvider); |
|
44 | + } |
|
45 | 45 | |
46 | 46 | // $middlewareResolver = new Resolver(); |
47 | 47 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $middleware = []; |
70 | 70 | |
71 | 71 | foreach ($this->globalMiddleware as $globalMiddleware) { |
72 | - $middleware[] = $this->getContainer()->get($globalMiddleware); |
|
72 | + $middleware[] = $this->getContainer()->get($globalMiddleware); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | return $middleware; |