@@ -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 | } elseif ($value instanceof Arrayable) { |
@@ -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\Templates\Keyboard; |
| 6 | 6 | |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * |
| 16 | 16 | * @return string |
| 17 | 17 | */ |
| 18 | - public function getLabel(): ?string |
|
| 18 | + public function getLabel(): ? string |
|
| 19 | 19 | { |
| 20 | 20 | return $this->label; |
| 21 | 21 | } |
@@ -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\Commands; |
| 6 | 6 | |
@@ -49,12 +49,12 @@ discard block |
||
| 49 | 49 | return $this->recipient; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - public function getText(): ?string |
|
| 52 | + public function getText(): ? string |
|
| 53 | 53 | { |
| 54 | 54 | return $this->text; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - public function getTemplate(): ?Template |
|
| 57 | + public function getTemplate(): ? Template |
|
| 58 | 58 | { |
| 59 | 59 | return $this->template; |
| 60 | 60 | } |
@@ -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\Toolbelt\Commands; |
| 6 | 6 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | $items = json_decode((string) $response->getBody(), true); |
| 26 | 26 | |
| 27 | 27 | $drivers = collect($items) |
| 28 | - ->map(function ($item) { |
|
| 28 | + ->map(function($item) { |
|
| 29 | 29 | return [$item['name'], $item['package'], $item['official'] ? '✅' : '❌']; |
| 30 | 30 | }) |
| 31 | 31 | ->toArray(); |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace FondBot\Conversation\Activators; |
| 6 | 6 | |