Passed
Push — 1.0 ( bc4ae1...82a12a )
by Vladimir
03:01
created
src/Drivers/TemplateCompiler.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
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         // If template can compile itself we recursively compile subelements
68 68
         if ($template instanceof Arrayable) {
69 69
             $array = $template->toArray();
70
-            $transformer = function ($value) use (&$transformer, $args) {
70
+            $transformer = function($value) use (&$transformer, $args) {
71 71
                 if (is_array($value)) {
72 72
                     return array_map($transformer, $value);
73 73
                 } elseif ($value instanceof Arrayable) {
Please login to merge, or discard this patch.
src/Templates/Keyboard/Button.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\Templates\Keyboard;
6 6
 
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      *
16 16
      * @return string
17 17
      */
18
-    public function getLabel(): ?string
18
+    public function getLabel(): ? string
19 19
     {
20 20
         return $this->label;
21 21
     }
Please login to merge, or discard this patch.
src/Drivers/Commands/SendMessage.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\Commands;
6 6
 
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
         return $this->recipient;
50 50
     }
51 51
 
52
-    public function getText(): ?string
52
+    public function getText(): ? string
53 53
     {
54 54
         return $this->text;
55 55
     }
56 56
 
57
-    public function getTemplate(): ?Template
57
+    public function getTemplate(): ? Template
58 58
     {
59 59
         return $this->template;
60 60
     }
Please login to merge, or discard this patch.
src/Toolbelt/Commands/ListDrivers.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\Toolbelt\Commands;
6 6
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         $items = json_decode((string) $response->getBody(), true);
26 26
 
27 27
         $drivers = collect($items)
28
-            ->map(function ($item) {
28
+            ->map(function($item) {
29 29
                 return [$item['name'], $item['package'], $item['official'] ? '✅' : '❌'];
30 30
             })
31 31
             ->toArray();
Please login to merge, or discard this patch.
src/Conversation/Activators/WithPayload.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.