Completed
Push — master ( 2eb041...554cb3 )
by Vladimir
03:14
created
src/Contracts/Conversation/Intent.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\Contracts\Conversation;
6 6
 
Please login to merge, or discard this patch.
src/Conversation/IntentManager.php 2 patches
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\Conversation;
6 6
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      *
23 23
      * @return Intent|null
24 24
      */
25
-    public function find(ReceivedMessage $message): ?Intent
25
+    public function find(ReceivedMessage $message): ? Intent
26 26
     {
27 27
         foreach ($this->intents as $intent) {
28 28
             foreach ($intent->activators() as $activator) {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 namespace FondBot\Conversation;
6 6
 
7
-use FondBot\Contracts\Conversation\Intent;
8 7
 use FondBot\Contracts\Channels\ReceivedMessage;
8
+use FondBot\Contracts\Conversation\Intent;
9 9
 
10 10
 class IntentManager
11 11
 {
Please login to merge, or discard this patch.
src/Conversation/Traits/SendsMessages.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\Traits;
6 6
 
Please login to merge, or discard this patch.
src/Contracts/Conversation/Interaction.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\Contracts\Conversation;
6 6
 
Please login to merge, or discard this patch.
src/Conversation/Context.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * Get current intent instance.
71 71
      *
72
-     * @return Intent|Conversable|null
72
+     * @return null|Intent
73 73
      */
74 74
     public function getIntent(): ?Intent
75 75
     {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * Get current interaction instance.
91 91
      *
92
-     * @return Interaction|Conversable|null
92
+     * @return null|Interaction
93 93
      */
94 94
     public function getInteraction(): ?Interaction
95 95
     {
Please login to merge, or discard this 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.
Unused Use Statements   +3 added lines, -3 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\Channels\User;
8
-use FondBot\Contracts\Core\Arrayable;
9
-use FondBot\Contracts\Conversation\Intent;
10 7
 use FondBot\Contracts\Channels\ReceivedMessage;
8
+use FondBot\Contracts\Channels\User;
11 9
 use FondBot\Contracts\Conversation\Conversable;
10
+use FondBot\Contracts\Conversation\Intent;
12 11
 use FondBot\Contracts\Conversation\Interaction;
12
+use FondBot\Contracts\Core\Arrayable;
13 13
 
14 14
 class Context implements Arrayable
15 15
 {
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/Channels/VkCommunity/VkCommunityReceivedMessage.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\Channels\VkCommunity;
6 6
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      *
23 23
      * @return string|null
24 24
      */
25
-    public function getText(): ?string
25
+    public function getText(): ? string
26 26
     {
27 27
         return $this->payload['body'] ?? null;
28 28
     }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return Location|null
34 34
      */
35
-    public function getLocation(): ?Location
35
+    public function getLocation(): ? Location
36 36
     {
37 37
         return null;
38 38
     }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      *
53 53
      * @return Attachment|null
54 54
      */
55
-    public function getAttachment(): ?Attachment
55
+    public function getAttachment(): ? Attachment
56 56
     {
57 57
         return null;
58 58
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @return string|null
74 74
      */
75
-    public function getData(): ?string
75
+    public function getData(): ? string
76 76
     {
77 77
         return null;
78 78
     }
Please login to merge, or discard this patch.