@@ -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 | { |
@@ -5,8 +5,8 @@ |
||
5 | 5 | namespace FondBot\Drivers; |
6 | 6 | |
7 | 7 | use FondBot\Channels\Channel; |
8 | -use FondBot\Contracts\Drivers\Driver; |
|
9 | 8 | use FondBot\Channels\Exceptions\InvalidConfiguration; |
9 | +use FondBot\Contracts\Drivers\Driver; |
|
10 | 10 | |
11 | 11 | class DriverManager |
12 | 12 | { |
@@ -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 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | private function validateParameters(Channel $channel, Driver $driver): void |
56 | 56 | { |
57 | - collect($driver->getConfig())->each(function (string $parameter) use ($channel) { |
|
57 | + collect($driver->getConfig())->each(function(string $parameter) use ($channel) { |
|
58 | 58 | if (!array_key_exists($parameter, $channel->getParameters())) { |
59 | 59 | throw new InvalidConfiguration('Invalid `'.$channel->getName().'` channel configuration.'); |
60 | 60 | } |
@@ -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; |
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\Message; |
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\Message; |
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; |
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\Message; |
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\Message; |
6 | 6 |