@@ -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\Channels\Facebook; |
6 | 6 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * |
31 | 31 | * @return string|null |
32 | 32 | */ |
33 | - public function getName(): ?string |
|
33 | + public function getName(): ? string |
|
34 | 34 | { |
35 | 35 | return $this->payload['first_name'].' '.$this->payload['last_name']; |
36 | 36 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @return string|null |
42 | 42 | */ |
43 | - public function getUsername(): ?string |
|
43 | + public function getUsername(): ? string |
|
44 | 44 | { |
45 | 45 | return null; |
46 | 46 | } |
@@ -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\Channels\Facebook; |
6 | 6 |
@@ -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\Channels\Facebook; |
6 | 6 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @return Keyboard|null |
49 | 49 | */ |
50 | - public function getKeyboard(): ?Keyboard |
|
50 | + public function getKeyboard(): ? Keyboard |
|
51 | 51 | { |
52 | 52 | return $this->keyboard; |
53 | 53 | } |
@@ -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\Channels; |
6 | 6 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | private function validateParameters(Channel $channel, Driver $driver): void |
55 | 55 | { |
56 | - collect($driver->getConfig())->each(function (string $parameter) use ($channel) { |
|
56 | + collect($driver->getConfig())->each(function(string $parameter) use ($channel) { |
|
57 | 57 | if (!array_key_exists($parameter, $channel->getParameters())) { |
58 | 58 | throw new InvalidConfiguration('Invalid `'.$channel->getName().'` channel configuration.'); |
59 | 59 | } |
@@ -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\Traits; |
6 | 6 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | private function prepareContext(array $context): array |
35 | 35 | { |
36 | 36 | return collect($context) |
37 | - ->map(function ($item) { |
|
37 | + ->map(function($item) { |
|
38 | 38 | if ($item instanceof Arrayable || method_exists($item, 'toArray')) { |
39 | 39 | return $item->toArray(); |
40 | 40 | } |
@@ -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\Traits; |
6 | 6 |
@@ -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\Traits; |
6 | 6 |
@@ -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\Traits; |
6 | 6 |
@@ -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\Keyboards; |
6 | 6 |