Test Failed
Pull Request — master (#4)
by Ole
01:53
created
src/Response/Handler/AbstractLazyResponseHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public static function getSubscribedEvents(): array
18 18
     {
19 19
         return [
20
-            KernelEvents::VIEW => ['handleLazyResponse'],
20
+            KernelEvents::VIEW => [ 'handleLazyResponse' ],
21 21
         ];
22 22
     }
23 23
 
Please login to merge, or discard this patch.
src/Response/AbstractLazyHttpResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     /**
14 14
      * AbstractLazyHttpResponse constructor.
15 15
      */
16
-    public function __construct(protected int $status = Response::HTTP_OK, protected array $headers = [])
16
+    public function __construct(protected int $status = Response::HTTP_OK, protected array $headers = [ ])
17 17
     {
18 18
     }
19 19
 
Please login to merge, or discard this patch.
src/Response/TemplateResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  */
11 11
 final class TemplateResponse extends AbstractLazyHttpResponse
12 12
 {
13
-    public function __construct(private string $template, private array $data = [], int $status = Response::HTTP_OK, array $headers = [])
13
+    public function __construct(private string $template, private array $data = [ ], int $status = Response::HTTP_OK, array $headers = [ ])
14 14
     {
15 15
         parent::__construct($status, $headers);
16 16
     }
Please login to merge, or discard this patch.
src/Response/RedirectResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  */
9 9
 final class RedirectResponse implements LazyResponseInterface
10 10
 {
11
-    public function __construct(private string $routeName, private array $routeParams = [], private bool $isPermanent = false, private array $headers = [])
11
+    public function __construct(private string $routeName, private array $routeParams = [ ], private bool $isPermanent = false, private array $headers = [ ])
12 12
     {
13 13
     }
14 14
 
Please login to merge, or discard this patch.
src/Response/JsonSerializeResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     /**
14 14
      * JsonSerializeResponse constructor.
15 15
      */
16
-    public function __construct(private mixed $data, int $status = Response::HTTP_OK, array $headers = [])
16
+    public function __construct(private mixed $data, int $status = Response::HTTP_OK, array $headers = [ ])
17 17
     {
18 18
         parent::__construct($status, $headers);
19 19
     }
Please login to merge, or discard this patch.