@@ -9,5 +9,5 @@ |
||
9 | 9 | { |
10 | 10 | public function url(): string; |
11 | 11 | public function parameters(): array; |
12 | - public function __invoke(Request $request): ?Response; |
|
12 | + public function __invoke(Request $request): ? Response; |
|
13 | 13 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * @param Closure|null $cb |
33 | 33 | * @param array $parameters |
34 | 34 | */ |
35 | - public function __construct(string $url, ?Closure $cb = null, array $parameters = []) |
|
35 | + public function __construct(string $url, ? Closure $cb = null, array $parameters = []) |
|
36 | 36 | { |
37 | 37 | $this->url = $url; |
38 | 38 | $this->callback = $cb; |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * @return Response|null |
55 | 55 | * @throws \Error if callback did not return Response|null |
56 | 56 | */ |
57 | - public function __invoke(Request $request): ?Response |
|
57 | + public function __invoke(Request $request): ? Response |
|
58 | 58 | { |
59 | 59 | $response = call_user_func_array($this->callback, [$request]); |
60 | 60 | if (is_null($response) || $response instanceof Response) { |