Completed
Push — master ( 69c3b2...0e295f )
by Alexander
01:41
created
src/interfaces/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,5 +9,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Route.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.