@@ -17,7 +17,7 @@ |
||
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 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | private $headers; |
30 | 30 | |
31 | - public function __construct(string $routeName, array $routeParams = [], bool $isPermanent = false, array $headers = []) |
|
31 | + public function __construct(string $routeName, array $routeParams = [ ], bool $isPermanent = false, array $headers = [ ]) |
|
32 | 32 | { |
33 | 33 | $this->routeName = $routeName; |
34 | 34 | $this->routeParams = $routeParams; |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | private $data; |
22 | 22 | |
23 | - public function __construct(string $template, array $data, int $status = Response::HTTP_OK, array $headers = []) |
|
23 | + public function __construct(string $template, array $data, int $status = Response::HTTP_OK, array $headers = [ ]) |
|
24 | 24 | { |
25 | 25 | parent::__construct($status, $headers); |
26 | 26 | $this->template = $template; |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * @param int $status |
21 | 21 | * @param array $headers |
22 | 22 | */ |
23 | - public function __construct($data, int $status = Response::HTTP_OK, array $headers = []) |
|
23 | + public function __construct($data, int $status = Response::HTTP_OK, array $headers = [ ]) |
|
24 | 24 | { |
25 | 25 | parent::__construct($status, $headers); |
26 | 26 | $this->data = $data; |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * AbstractLazyHttpResponse constructor. |
25 | 25 | */ |
26 | - public function __construct(int $status = Response::HTTP_OK, array $headers = []) |
|
26 | + public function __construct(int $status = Response::HTTP_OK, array $headers = [ ]) |
|
27 | 27 | { |
28 | 28 | $this->status = $status; |
29 | 29 | $this->headers = $headers; |