@@ -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; |
6 | 6 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * |
97 | 97 | * @return Context|null |
98 | 98 | */ |
99 | - public function getContext(): ?Context |
|
99 | + public function getContext(): ? Context |
|
100 | 100 | { |
101 | 101 | return $this->context; |
102 | 102 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | string $text, |
217 | 217 | Keyboard $keyboard = null, |
218 | 218 | string $driver = null |
219 | - ): ?OutgoingMessage { |
|
219 | + ): ? OutgoingMessage { |
|
220 | 220 | if ($driver !== null && !$this->driver instanceof $driver) { |
221 | 221 | return null; |
222 | 222 | } |
@@ -4,20 +4,20 @@ |
||
4 | 4 | |
5 | 5 | namespace FondBot; |
6 | 6 | |
7 | -use FondBot\Drivers\User; |
|
8 | -use FondBot\Drivers\Driver; |
|
9 | 7 | use FondBot\Channels\Channel; |
10 | 8 | use FondBot\Contracts\Container; |
11 | -use FondBot\Conversation\Intent; |
|
12 | 9 | use FondBot\Conversation\Context; |
13 | -use FondBot\Conversation\Keyboard; |
|
14 | -use FondBot\Drivers\OutgoingMessage; |
|
10 | +use FondBot\Conversation\ContextManager; |
|
15 | 11 | use FondBot\Conversation\Conversable; |
16 | -use FondBot\Conversation\Interaction; |
|
12 | +use FondBot\Conversation\Intent; |
|
17 | 13 | use FondBot\Conversation\IntentManager; |
18 | -use FondBot\Conversation\ContextManager; |
|
14 | +use FondBot\Conversation\Interaction; |
|
15 | +use FondBot\Conversation\Keyboard; |
|
16 | +use FondBot\Drivers\Driver; |
|
19 | 17 | use FondBot\Drivers\Exceptions\InvalidRequest; |
20 | 18 | use FondBot\Drivers\Extensions\WebhookVerification; |
19 | +use FondBot\Drivers\OutgoingMessage; |
|
20 | +use FondBot\Drivers\User; |
|
21 | 21 | |
22 | 22 | class Bot |
23 | 23 | { |
@@ -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\Drivers\Exceptions; |
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\Drivers\Exceptions; |
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\Drivers; |
6 | 6 | |
@@ -14,14 +14,14 @@ discard block |
||
14 | 14 | * |
15 | 15 | * @return string|null |
16 | 16 | */ |
17 | - public function getText(): ?string; |
|
17 | + public function getText(): ? string; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Get location. |
21 | 21 | * |
22 | 22 | * @return Location|null |
23 | 23 | */ |
24 | - public function getLocation(): ?Location; |
|
24 | + public function getLocation(): ? Location; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Determine if message has attachment. |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * |
36 | 36 | * @return Attachment|null |
37 | 37 | */ |
38 | - public function getAttachment(): ?Attachment; |
|
38 | + public function getAttachment(): ? Attachment; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Determine if message has payload. |
@@ -49,5 +49,5 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @return string|null |
51 | 51 | */ |
52 | - public function getData(): ?string; |
|
52 | + public function getData(): ? string; |
|
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\Drivers; |
6 | 6 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * |
31 | 31 | * @return Keyboard|null |
32 | 32 | */ |
33 | - public function getKeyboard(): ?Keyboard; |
|
33 | + public function getKeyboard(): ? Keyboard; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Get the instance as an array. |
@@ -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\Drivers\Extensions; |
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\Drivers\Extensions; |
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\Drivers; |
6 | 6 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * |
33 | 33 | * @return string|null |
34 | 34 | */ |
35 | - public function getName(): ?string |
|
35 | + public function getName(): ? string |
|
36 | 36 | { |
37 | 37 | return $this->name; |
38 | 38 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * |
43 | 43 | * @return string|null |
44 | 44 | */ |
45 | - public function getUsername(): ?string |
|
45 | + public function getUsername(): ? string |
|
46 | 46 | { |
47 | 47 | return $this->username; |
48 | 48 | } |
@@ -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\Drivers\ReceivedMessage; |
6 | 6 |