Passed
Push — master ( 61fa52...b9d74d )
by Vladimir
13:13
created
src/Conversation/Context.php 1 patch
Spacing   +4 added lines, -4 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\Conversation;
6 6
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      *
72 72
      * @return Intent|Conversable|null
73 73
      */
74
-    public function getIntent(): ?Intent
74
+    public function getIntent(): ? Intent
75 75
     {
76 76
         return $this->intent;
77 77
     }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @return Interaction|Conversable|null
93 93
      */
94
-    public function getInteraction(): ?Interaction
94
+    public function getInteraction(): ? Interaction
95 95
     {
96 96
         return $this->interaction;
97 97
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @param Interaction|null $interaction
103 103
      */
104
-    public function setInteraction(?Interaction $interaction): void
104
+    public function setInteraction(? Interaction $interaction) : void
105 105
     {
106 106
         $this->interaction = $interaction;
107 107
     }
Please login to merge, or discard this patch.
src/Bot.php 2 patches
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
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Unused Use Statements   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,20 +4,20 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Conversation/Buttons/ReplyButton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Conversation\Buttons;
6 6
 
Please login to merge, or discard this patch.
src/Conversation/Buttons/UrlButton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Conversation\Buttons;
6 6
 
Please login to merge, or discard this patch.
src/Conversation/Buttons/PayloadButton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Conversation\Buttons;
6 6
 
Please login to merge, or discard this patch.
src/Drivers/Driver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Drivers;
6 6
 
Please login to merge, or discard this patch.
src/Drivers/DriverManager.php 1 patch
Spacing   +2 added lines, -2 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\Drivers;
6 6
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Channels/ChannelNotFound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Channels;
6 6
 
Please login to merge, or discard this patch.
src/Conversation/Activators/Activator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Conversation\Activators;
6 6
 
Please login to merge, or discard this patch.