@@ -4,21 +4,21 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace FondBot; |
| 6 | 6 | |
| 7 | -use FondBot\Traits\Loggable; |
|
| 8 | 7 | use FondBot\Channels\Channel; |
| 9 | -use FondBot\Conversation\Context; |
|
| 10 | -use FondBot\Contracts\Drivers\User; |
|
| 11 | -use FondBot\Contracts\Drivers\Driver; |
|
| 12 | -use FondBot\Conversation\IntentManager; |
|
| 13 | -use FondBot\Conversation\ContextManager; |
|
| 14 | 8 | use FondBot\Contracts\Container\Container; |
| 15 | -use FondBot\Contracts\Conversation\Intent; |
|
| 16 | -use FondBot\Contracts\Conversation\Keyboard; |
|
| 17 | -use FondBot\Contracts\Drivers\OutgoingMessage; |
|
| 18 | 9 | use FondBot\Contracts\Conversation\Conversable; |
| 10 | +use FondBot\Contracts\Conversation\Intent; |
|
| 19 | 11 | use FondBot\Contracts\Conversation\Interaction; |
| 20 | -use FondBot\Contracts\Drivers\InvalidRequest; |
|
| 12 | +use FondBot\Contracts\Conversation\Keyboard; |
|
| 13 | +use FondBot\Contracts\Drivers\Driver; |
|
| 21 | 14 | use FondBot\Contracts\Drivers\Extensions\WebhookVerification; |
| 15 | +use FondBot\Contracts\Drivers\InvalidRequest; |
|
| 16 | +use FondBot\Contracts\Drivers\OutgoingMessage; |
|
| 17 | +use FondBot\Contracts\Drivers\User; |
|
| 18 | +use FondBot\Conversation\Context; |
|
| 19 | +use FondBot\Conversation\ContextManager; |
|
| 20 | +use FondBot\Conversation\IntentManager; |
|
| 21 | +use FondBot\Traits\Loggable; |
|
| 22 | 22 | |
| 23 | 23 | class Bot |
| 24 | 24 | { |
@@ -4,12 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace FondBot\Conversation; |
| 6 | 6 | |
| 7 | -use FondBot\Contracts\Drivers\User; |
|
| 8 | -use FondBot\Contracts\Core\Arrayable; |
|
| 9 | -use FondBot\Contracts\Conversation\Intent; |
|
| 10 | -use FondBot\Contracts\Drivers\ReceivedMessage; |
|
| 11 | 7 | use FondBot\Contracts\Conversation\Conversable; |
| 8 | +use FondBot\Contracts\Conversation\Intent; |
|
| 12 | 9 | use FondBot\Contracts\Conversation\Interaction; |
| 10 | +use FondBot\Contracts\Core\Arrayable; |
|
| 11 | +use FondBot\Contracts\Drivers\ReceivedMessage; |
|
| 12 | +use FondBot\Contracts\Drivers\User; |
|
| 13 | 13 | |
| 14 | 14 | class Context implements Arrayable |
| 15 | 15 | { |
@@ -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\Contracts\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\Contracts\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\Contracts\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\Contracts\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\Contracts\Drivers; |
| 6 | 6 | |
@@ -18,12 +18,12 @@ discard block |
||
| 18 | 18 | * |
| 19 | 19 | * @return string|null |
| 20 | 20 | */ |
| 21 | - public function getName(): ?string; |
|
| 21 | + public function getName(): ? string; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Username. |
| 25 | 25 | * |
| 26 | 26 | * @return string|null |
| 27 | 27 | */ |
| 28 | - public function getUsername(): ?string; |
|
| 28 | + public function getUsername(): ? string; |
|
| 29 | 29 | } |