Passed
Push — master ( 61fa52...b9d74d )
by Vladimir
13:13
created
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/Drivers/Exceptions/InvalidRequest.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\Exceptions;
6 6
 
Please login to merge, or discard this patch.
src/Drivers/Exceptions/InvalidConfiguration.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\Exceptions;
6 6
 
Please login to merge, or discard this patch.
src/Drivers/ReceivedMessage.php 1 patch
Spacing   +5 added lines, -5 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
 
@@ -14,14 +14,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
49 49
      *
50 50
      * @return string|null
51 51
      */
52
-    public function getData(): ?string;
52
+    public function getData(): ? string;
53 53
 }
Please login to merge, or discard this patch.
src/Drivers/OutgoingMessage.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
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Drivers/Extensions/WebhookVerification.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\Extensions;
6 6
 
Please login to merge, or discard this patch.
src/Drivers/Extensions/WebhookInstallation.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\Extensions;
6 6
 
Please login to merge, or discard this patch.
src/Drivers/User.php 1 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\Drivers;
6 6
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return string|null
34 34
      */
35
-    public function getName(): ?string
35
+    public function getName(): ? string
36 36
     {
37 37
         return $this->name;
38 38
     }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return string|null
44 44
      */
45
-    public function getUsername(): ?string
45
+    public function getUsername(): ? string
46 46
     {
47 47
         return $this->username;
48 48
     }
Please login to merge, or discard this patch.
src/Drivers/ReceivedMessage/Location.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\ReceivedMessage;
6 6
 
Please login to merge, or discard this patch.