Completed
Push — master ( 269bc3...61fa52 )
by Vladimir
36:35
created
src/Bot.php 2 patches
Unused Use Statements   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,20 +5,20 @@
 block discarded – undo
5 5
 namespace FondBot;
6 6
 
7 7
 use FondBot\Channels\Channel;
8
-use FondBot\Contracts\Drivers\User;
9
-use FondBot\Contracts\Drivers\Driver;
10
-use FondBot\Conversation\IntentManager;
11
-use FondBot\Conversation\ContextManager;
12 8
 use FondBot\Contracts\Bot as BotContract;
13 9
 use FondBot\Contracts\Container\Container;
14
-use FondBot\Contracts\Conversation\Intent;
15 10
 use FondBot\Contracts\Conversation\Context;
16
-use FondBot\Contracts\Conversation\Keyboard;
17
-use FondBot\Contracts\Drivers\InvalidRequest;
18
-use FondBot\Contracts\Drivers\OutgoingMessage;
19 11
 use FondBot\Contracts\Conversation\Conversable;
12
+use FondBot\Contracts\Conversation\Intent;
20 13
 use FondBot\Contracts\Conversation\Interaction;
14
+use FondBot\Contracts\Conversation\Keyboard;
15
+use FondBot\Contracts\Drivers\Driver;
21 16
 use FondBot\Contracts\Drivers\Extensions\WebhookVerification;
17
+use FondBot\Contracts\Drivers\InvalidRequest;
18
+use FondBot\Contracts\Drivers\OutgoingMessage;
19
+use FondBot\Contracts\Drivers\User;
20
+use FondBot\Conversation\ContextManager;
21
+use FondBot\Conversation\IntentManager;
22 22
 
23 23
 class Bot implements BotContract
24 24
 {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot;
6 6
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      *
89 89
      * @return Context|null
90 90
      */
91
-    public function getContext(): ?Contracts\Conversation\Context
91
+    public function getContext(): ? Contracts\Conversation\Context
92 92
     {
93 93
         return $this->context;
94 94
     }
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         string $text,
199 199
         Keyboard $keyboard = null,
200 200
         string $driver = null
201
-    ): ?OutgoingMessage {
201
+    ): ? OutgoingMessage {
202 202
         if ($driver !== null && !$this->driver instanceof $driver) {
203 203
             return null;
204 204
         }
Please login to merge, or discard this patch.
src/Conversation/Context.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@
 block discarded – undo
4 4
 
5 5
 namespace FondBot\Conversation;
6 6
 
7
-use FondBot\Contracts\Drivers\User;
8
-use FondBot\Contracts\Conversation\Intent;
9
-use FondBot\Contracts\Drivers\ReceivedMessage;
7
+use FondBot\Contracts\Conversation\Context as ContextContract;
10 8
 use FondBot\Contracts\Conversation\Conversable;
9
+use FondBot\Contracts\Conversation\Intent;
11 10
 use FondBot\Contracts\Conversation\Interaction;
12
-use FondBot\Contracts\Conversation\Context as ContextContract;
11
+use FondBot\Contracts\Drivers\ReceivedMessage;
12
+use FondBot\Contracts\Drivers\User;
13 13
 
14 14
 class Context implements ContextContract
15 15
 {
Please login to merge, or discard this patch.
src/Conversation/Intent.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
 namespace FondBot\Conversation;
6 6
 
7 7
 use FondBot\Contracts\Bot;
8
-use FondBot\Conversation\Traits\Transitions;
8
+use FondBot\Contracts\Conversation\Conversable;
9
+use FondBot\Contracts\Conversation\Intent as IntentContract;
9 10
 use FondBot\Conversation\Traits\Authorization;
10 11
 use FondBot\Conversation\Traits\HasActivators;
11
-use FondBot\Conversation\Traits\SendsMessages;
12
-use FondBot\Contracts\Conversation\Conversable;
13 12
 use FondBot\Conversation\Traits\InteractsWithContext;
14
-use FondBot\Contracts\Conversation\Intent as IntentContract;
13
+use FondBot\Conversation\Traits\SendsMessages;
14
+use FondBot\Conversation\Traits\Transitions;
15 15
 
16 16
 abstract class Intent implements IntentContract, Conversable
17 17
 {
Please login to merge, or discard this patch.
src/Conversation/Interaction.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@
 block discarded – undo
5 5
 namespace FondBot\Conversation;
6 6
 
7 7
 use FondBot\Contracts\Bot;
8
-use FondBot\Conversation\Traits\Transitions;
9
-use FondBot\Conversation\Traits\SendsMessages;
10 8
 use FondBot\Contracts\Conversation\Conversable;
11
-use FondBot\Conversation\Traits\InteractsWithContext;
12 9
 use FondBot\Contracts\Conversation\Interaction as InteractionContract;
10
+use FondBot\Conversation\Traits\InteractsWithContext;
11
+use FondBot\Conversation\Traits\SendsMessages;
12
+use FondBot\Conversation\Traits\Transitions;
13 13
 
14 14
 abstract class Interaction implements InteractionContract, Conversable
15 15
 {
Please login to merge, or discard this patch.