@@ -11,31 +11,31 @@ |
||
11 | 11 | */ |
12 | 12 | interface RequestHandler |
13 | 13 | { |
14 | - /** |
|
15 | - * Check if the request is authorized to perform the action |
|
16 | - * |
|
17 | - * @param ServerRequestInterface $request |
|
18 | - * |
|
19 | - * @return bool |
|
20 | - */ |
|
21 | - public function authorized(ServerRequestInterface $request): bool; |
|
14 | + /** |
|
15 | + * Check if the request is authorized to perform the action |
|
16 | + * |
|
17 | + * @param ServerRequestInterface $request |
|
18 | + * |
|
19 | + * @return bool |
|
20 | + */ |
|
21 | + public function authorized(ServerRequestInterface $request): bool; |
|
22 | 22 | |
23 | - /** |
|
24 | - * Check if the request is valid to perform the action |
|
25 | - * |
|
26 | - * @param ServerRequestInterface $request |
|
27 | - * |
|
28 | - * @return bool |
|
29 | - */ |
|
30 | - public function valid(ServerRequestInterface $request): bool; |
|
23 | + /** |
|
24 | + * Check if the request is valid to perform the action |
|
25 | + * |
|
26 | + * @param ServerRequestInterface $request |
|
27 | + * |
|
28 | + * @return bool |
|
29 | + */ |
|
30 | + public function valid(ServerRequestInterface $request): bool; |
|
31 | 31 | |
32 | - /** |
|
33 | - * Perform the action that is requested |
|
34 | - * |
|
35 | - * @param ServerRequestInterface $request |
|
36 | - * @param ResponseInterface $response |
|
37 | - * |
|
38 | - * @return ResponseInterface |
|
39 | - */ |
|
40 | - public function perform(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface; |
|
32 | + /** |
|
33 | + * Perform the action that is requested |
|
34 | + * |
|
35 | + * @param ServerRequestInterface $request |
|
36 | + * @param ResponseInterface $response |
|
37 | + * |
|
38 | + * @return ResponseInterface |
|
39 | + */ |
|
40 | + public function perform(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface; |
|
41 | 41 | } |
@@ -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 | } |