Completed
Push — master ( 4317fb...cd535a )
by Vladimir
02:31
created
src/Bot.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
     /**
188 188
      * Start conversation.
189 189
      *
190
-     * @param Conversable|Intent|Interaction $conversable
190
+     * @param Conversable $conversable
191 191
      */
192 192
     public function converse(Conversable $conversable): void
193 193
     {
Please login to merge, or discard this patch.
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
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *
71 71
      * @return Intent|null
72 72
      */
73
-    public function getIntent(): ?Intent
73
+    public function getIntent(): ? Intent
74 74
     {
75 75
         return $this->intent;
76 76
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return Interaction|null
92 92
      */
93
-    public function getInteraction(): ?Interaction
93
+    public function getInteraction(): ? Interaction
94 94
     {
95 95
         return $this->interaction;
96 96
     }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      *
101 101
      * @param Interaction|null $interaction
102 102
      */
103
-    public function setInteraction(?Interaction $interaction): void
103
+    public function setInteraction(? Interaction $interaction) : void
104 104
     {
105 105
         $this->interaction = $interaction;
106 106
     }
Please login to merge, or discard this patch.
src/Conversation/IntentManager.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\Conversation;
6 6
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @return Intent|null
25 25
      */
26
-    public function find(Context $context, ReceivedMessage $message): ?Intent
26
+    public function find(Context $context, ReceivedMessage $message): ? Intent
27 27
     {
28 28
         $intent = $context->getIntent();
29 29
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *
51 51
      * @return Intent|null
52 52
      */
53
-    private function findActivator(ReceivedMessage $message): ?Intent
53
+    private function findActivator(ReceivedMessage $message): ? Intent
54 54
     {
55 55
         foreach ($this->intents as $intent) {
56 56
             foreach ($intent->activators() as $activator) {
Please login to merge, or discard this patch.