@@ -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 run(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 run(ServerRequestInterface $request, ResponseInterface $response, callable $next) : ResponseInterface; |
|
| 18 | 18 | } |
@@ -8,18 +8,18 @@ |
||
| 8 | 8 | class Resolver implements ResolverInterface |
| 9 | 9 | { |
| 10 | 10 | |
| 11 | - /** |
|
| 12 | - * |
|
| 13 | - * Converts a middleware queue entry to a callable or an implementation of |
|
| 14 | - * MiddlewareInterface. |
|
| 15 | - * |
|
| 16 | - * @param mixed $entry The middleware queue entry. |
|
| 17 | - * |
|
| 18 | - * @return callable|MiddlewareInterface |
|
| 19 | - * |
|
| 20 | - */ |
|
| 21 | - public function __invoke($entry) |
|
| 22 | - { |
|
| 23 | - (new $entry)->run(); |
|
| 24 | - } |
|
| 11 | + /** |
|
| 12 | + * |
|
| 13 | + * Converts a middleware queue entry to a callable or an implementation of |
|
| 14 | + * MiddlewareInterface. |
|
| 15 | + * |
|
| 16 | + * @param mixed $entry The middleware queue entry. |
|
| 17 | + * |
|
| 18 | + * @return callable|MiddlewareInterface |
|
| 19 | + * |
|
| 20 | + */ |
|
| 21 | + public function __invoke($entry) |
|
| 22 | + { |
|
| 23 | + (new $entry)->run(); |
|
| 24 | + } |
|
| 25 | 25 | } |
| 26 | 26 | \ No newline at end of file |