@@ -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\Filesystem; |
| 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\Filesystem; |
| 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\Channels\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\Channels\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\Channels\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\Channels; |
| 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; |
| 6 | 6 | |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | /** |
| 188 | 188 | * Start conversation. |
| 189 | 189 | * |
| 190 | - * @param Conversable|Intent|Interaction $conversable |
|
| 190 | + * @param Conversable $conversable |
|
| 191 | 191 | */ |
| 192 | 192 | public function converse(Conversable $conversable): void |
| 193 | 193 | { |
@@ -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,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; |
|
| 8 | +use FondBot\Channels\Exceptions\InvalidChannelRequest; |
|
| 9 | +use FondBot\Contracts\Channels\Extensions\WebhookVerification; |
|
| 10 | +use FondBot\Contracts\Channels\OutgoingMessage; |
|
| 10 | 11 | use FondBot\Contracts\Channels\User; |
| 11 | -use FondBot\Contracts\Drivers\Driver; |
|
| 12 | -use FondBot\Conversation\IntentManager; |
|
| 13 | -use FondBot\Conversation\ContextManager; |
|
| 14 | 12 | use FondBot\Contracts\Container\Container; |
| 15 | -use FondBot\Contracts\Conversation\Intent; |
|
| 16 | -use FondBot\Contracts\Conversation\Keyboard; |
|
| 17 | -use FondBot\Contracts\Channels\OutgoingMessage; |
|
| 18 | 13 | use FondBot\Contracts\Conversation\Conversable; |
| 14 | +use FondBot\Contracts\Conversation\Intent; |
|
| 19 | 15 | use FondBot\Contracts\Conversation\Interaction; |
| 20 | -use FondBot\Channels\Exceptions\InvalidChannelRequest; |
|
| 21 | -use FondBot\Contracts\Channels\Extensions\WebhookVerification; |
|
| 16 | +use FondBot\Contracts\Conversation\Keyboard; |
|
| 17 | +use FondBot\Contracts\Drivers\Driver; |
|
| 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 | { |
@@ -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\Fallback; |
| 6 | 6 | |