Passed
Push — master ( ab2065...dd3a3c )
by Bruno
18:37 queued 04:52
created
Formularium/Frontend/HTML/Framework.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             $atts,
117 117
             join(
118 118
                 '',
119
-                array_map(function ($e) {
119
+                array_map(function($e) {
120 120
                     return $e->__toString();
121 121
                 }, $elements)
122 122
             ),
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
     public function editableCompose(\Formularium\Model $m, array $elements, string $previousCompose): string
128 128
     {
129
-        return join('', array_map(function ($e) {
129
+        return join('', array_map(function($e) {
130 130
             return $e->__toString();
131 131
         }, $elements));
132 132
     }
Please login to merge, or discard this patch.
Formularium/Frontend/React/RenderableReactTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function fix($value, Field $field, HTMLNode $previous): HTMLNode
27 27
     {
28
-        $previous->walk(function (HTMLNode $element) use ($field) {
28
+        $previous->walk(function(HTMLNode $element) use ($field) {
29 29
             if ($element->getTag() === 'input') {
30 30
                 if ($element->getAttribute('type') === ['checkbox']) {
31 31
                     $element->setAttribute('checked', "{this.state.{$field->getName()}}");
Please login to merge, or discard this patch.
Formularium/Frontend/React/Renderable/Renderable_file.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function editable($value, Field $field, HTMLNode $previous): HTMLNode
16 16
     {
17 17
         $previous->filter(
18
-            function ($e) {
18
+            function($e) {
19 19
                 if ($e->getTag() === 'canvas') {
20 20
                     return false;
21 21
                 }
Please login to merge, or discard this patch.
Formularium/Frontend/Materialize/Element/Button.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         if ($icon) {
26 26
             $iconElement = HTMLNode::factory(
27 27
                 'i',
28
-                [ 'class' => "material-icons left" ],
28
+                ['class' => "material-icons left"],
29 29
                 $icon
30 30
             );
31 31
             $previous->prependContent($iconElement);
Please login to merge, or discard this patch.
Formularium/Frontend/Bulma/Element/Button.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
                 [
41 41
                     HTMLNode::factory(
42 42
                         'i',
43
-                        [ 'class' => $iconData ],
43
+                        ['class' => $iconData],
44 44
                         []
45 45
                     )
46 46
                 ]
Please login to merge, or discard this patch.
Formularium/Frontend/Bulma/RenderableBulmaInputTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@
 block discarded – undo
56 56
             $iconData[] = $icon;
57 57
             $iconElement = HTMLNode::factory(
58 58
                 'span',
59
-                [ 'class' => "icon is-small is-left" ],
59
+                ['class' => "icon is-small is-left"],
60 60
                 [
61 61
                     HTMLNode::factory(
62 62
                         'i',
63
-                        [ 'class' => $iconData ],
63
+                        ['class' => $iconData],
64 64
                         []
65 65
                     )
66 66
                 ]
Please login to merge, or discard this patch.
Formularium/Frontend/Bulma/Renderable/Renderable_file.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
                                     ['class' => "file-icon"],
54 54
                                     HTMLNode::factory(
55 55
                                         'i',
56
-                                        [ 'class' => "fas fa-upload" ]
56
+                                        ['class' => "fas fa-upload"]
57 57
                                     )
58 58
                                 ),
59 59
                                 HTMLNode::factory(
Please login to merge, or discard this patch.
Formularium/Frontend/Buefy/RenderableBuefyInputTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     {
28 28
         // add extra classes
29 29
         $previous->walk(
30
-            function ($e) use ($field) {
30
+            function($e) use ($field) {
31 31
                 if ($e instanceof HTMLNode) {
32 32
                     if ($e->getTag() === 'input') {
33 33
                         if (($e->getAttribute('type')[0] ?? '') === 'radio') {
Please login to merge, or discard this patch.
Formularium/Frontend/Buefy/Renderable/Renderable_file.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,12 +59,12 @@
 block discarded – undo
59 59
                                 [],
60 60
                                 HTMLNode::factory(
61 61
                                     'b-icon',
62
-                                    [ 'icon' => "upload", 'size' => "is-large" ]
62
+                                    ['icon' => "upload", 'size' => "is-large"]
63 63
                                 )
64 64
                             ),
65 65
                             HTMLNode::factory(
66 66
                                 'p',
67
-                                [ 'class' => 'formularium-label'],
67
+                                ['class' => 'formularium-label'],
68 68
                                 $renderable[Renderable::LABEL] ?? ''
69 69
                             )
70 70
                         ]
Please login to merge, or discard this patch.