Completed
Branch master (9a9cfb)
by Vladimir
06:41
created
src/Channels/Telegram/TelegramOutgoingMessage.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
     private $text;
15 15
     private $keyboard;
16 16
 
17
+    /**
18
+     * @param string $text
19
+     */
17 20
     public function __construct(User $recipient, $text, Keyboard $keyboard = null)
18 21
     {
19 22
         $this->recipient = $recipient;
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\Channels\Telegram;
6 6
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @return Keyboard|null
48 48
      */
49
-    public function getKeyboard(): ?Keyboard
49
+    public function getKeyboard(): ? Keyboard
50 50
     {
51 51
         return $this->keyboard;
52 52
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         return $payload;
71 71
     }
72 72
 
73
-    private function getReplyMarkup(): ?array
73
+    private function getReplyMarkup(): ? array
74 74
     {
75 75
         if ($this->keyboard !== null) {
76 76
             $buttons = [];
Please login to merge, or discard this patch.
src/Conversation/Context.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@
 block discarded – undo
65 65
         return $this->interaction;
66 66
     }
67 67
 
68
+    /**
69
+     * @param null|Interaction $interaction
70
+     */
68 71
     public function setInteraction(?Interaction $interaction): void
69 72
     {
70 73
         $this->interaction = $interaction;
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
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         return $this->message;
51 51
     }
52 52
 
53
-    public function getStory(): ?Story
53
+    public function getStory(): ? Story
54 54
     {
55 55
         return $this->story;
56 56
     }
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
         $this->story = $story;
61 61
     }
62 62
 
63
-    public function getInteraction(): ?Interaction
63
+    public function getInteraction(): ? Interaction
64 64
     {
65 65
         return $this->interaction;
66 66
     }
67 67
 
68
-    public function setInteraction(?Interaction $interaction): void
68
+    public function setInteraction(? Interaction $interaction) : void
69 69
     {
70 70
         $this->interaction = $interaction;
71 71
     }
Please login to merge, or discard this patch.
src/BotFactory.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;
6 6
 
Please login to merge, or discard this patch.
src/Conversation/StoryManager.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
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      *
23 23
      * @return Story|null
24 24
      */
25
-    public function find(Context $context, ReceivedMessage $message): ?Story
25
+    public function find(Context $context, ReceivedMessage $message): ? Story
26 26
     {
27 27
         $story = $context->getStory();
28 28
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      *
50 50
      * @return Story|null
51 51
      */
52
-    private function findActivator(ReceivedMessage $message): ?Story
52
+    private function findActivator(ReceivedMessage $message): ? Story
53 53
     {
54 54
         foreach ($this->stories as $story) {
55 55
             foreach ($story->activators() as $activator) {
Please login to merge, or discard this patch.
src/Conversation/Activators/WithAttachment.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.
src/Conversation/Activators/InArray.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.
src/Conversation/Activators/Pattern.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.
src/Conversation/Activators/Exact.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.
src/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\Conversation;
6 6
 
Please login to merge, or discard this patch.