@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace FondBot\Drivers; |
| 6 | 6 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | // If template can compile itself we recursively compile subelements |
| 68 | 68 | if ($template instanceof Arrayable) { |
| 69 | 69 | $array = $template->toArray(); |
| 70 | - $transformer = function ($value) use (&$transformer, $args) { |
|
| 70 | + $transformer = function($value) use (&$transformer, $args) { |
|
| 71 | 71 | if (is_array($value)) { |
| 72 | 72 | return array_map($transformer, $value); |
| 73 | 73 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace FondBot\Drivers; |
| 6 | 6 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * |
| 39 | 39 | * @return array |
| 40 | 40 | */ |
| 41 | - public function toArray(): ?array |
|
| 41 | + public function toArray(): ? array |
|
| 42 | 42 | { |
| 43 | 43 | $normalizer = new ObjectNormalizer(null, new CamelCaseToSnakeCaseNameConverter); |
| 44 | 44 | $serializer = new Serializer([$normalizer]); |