Passed
Push — master ( 72b6b4...b78bc9 )
by Bruno
14:01
created
Formularium/Frontend/HTML/Framework.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@
 block discarded – undo
11 11
 
12 12
     public function viewableCompose(\Formularium\Model $m, array $elements, string $previousCompose): string
13 13
     {
14
-        return join('', array_map(function ($e) {
14
+        return join('', array_map(function($e) {
15 15
             return $e->__toString();
16 16
         }, $elements));
17 17
     }
18 18
 
19 19
     public function editableCompose(\Formularium\Model $m, array $elements, string $previousCompose): string
20 20
     {
21
-        return join('', array_map(function ($e) {
21
+        return join('', array_map(function($e) {
22 22
             return $e->__toString();
23 23
         }, $elements));
24 24
     }
Please login to merge, or discard this patch.
Formularium/Frontend/Buefy/Renderable/Renderable_date.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) {
30
+            function($e) {
31 31
                 if ($e instanceof HTMLElement) {
32 32
                     if ($e->getTag() === 'input') {
33 33
                         $e->setTag('b-datepicker');
Please login to merge, or discard this patch.
Formularium/Frontend/Buefy/Renderable/Renderable_datetime.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) {
30
+            function($e) {
31 31
                 if ($e instanceof HTMLElement) {
32 32
                     if ($e->getTag() === 'input') {
33 33
                         $e->setTag('b-datetimepicker');
Please login to merge, or discard this patch.
Formularium/Frontend/Bulma/RenderableBulmaTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $label = $base->get('label.formularium-label');
35 35
         if (!empty($label)) {
36 36
             // delete
37
-            $base->filter(function ($e) {
37
+            $base->filter(function($e) {
38 38
                 return !($e->getTag() === 'label' && $e->getAttribute('class') === ['formularium-label']);
39 39
             });
40 40
             // fix class
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 HTMLElement) {
32 32
                     if ($e->getTag() === 'input') {
33 33
                         if (($e->getAttribute('type')[0] ?? '') === 'radio') {
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 = HTMLElement::factory(
58 58
                 'span',
59
-                [ 'class' => "icon is-small is-left" ],
59
+                ['class' => "icon is-small is-left"],
60 60
                 [
61 61
                     HTMLElement::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/Bootstrap/RenderableBootstrapInputTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,17 +56,17 @@
 block discarded – undo
56 56
             $iconData[] = $icon;
57 57
             $group = HTMLElement::factory(
58 58
                 'div',
59
-                [ 'class' => "input-group mb-3" ],
59
+                ['class' => "input-group mb-3"],
60 60
                 [
61 61
                     HTMLElement::factory(
62 62
                         'div',
63
-                        [ 'class' => "input-group-prepend" ],
63
+                        ['class' => "input-group-prepend"],
64 64
                         HTMLElement::factory(
65 65
                             'span',
66
-                            [ 'class' => "input-group-text" ],
66
+                            ['class' => "input-group-text"],
67 67
                             HTMLElement::factory(
68 68
                                 'i',
69
-                                [ 'class' => $iconData ],
69
+                                ['class' => $iconData],
70 70
                                 []
71 71
                             )
72 72
                         )
Please login to merge, or discard this patch.
Formularium/Frontend/Vue/Framework.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
     protected $mode = self::VUE_MODE_EMBEDDED;
20 20
 
21 21
     /**
22
-    * The tag used as container for fields in viewable()
23
-    *
24
-    * @var string
25
-    */
22
+     * The tag used as container for fields in viewable()
23
+     *
24
+     * @var string
25
+     */
26 26
     protected $viewableContainerTag = 'div';
27 27
 
28 28
     /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
     protected function serializeProps(array $props): string
214 214
     {
215
-        $s = array_map(function ($name, $p) {
215
+        $s = array_map(function($name, $p) {
216 216
             return "'$name': { 'type': {$p['type']}" . ($p['required'] ?? false ? ", 'required': true" : '') . " } ";
217 217
         }, array_keys($props), $props);
218 218
         return "{\n        " . implode(",\n        ", $s) . "\n    }\n";
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
         $jsonData = json_encode($data);
227 227
         $props = $this->props($m);
228 228
         $propsBind = array_map(
229
-            function ($p) {
229
+            function($p) {
230 230
                 return 'v-bind:' . $p . '="model.' . $p . '"';
231 231
             },
232 232
             array_keys($props)
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         $jsonData = json_encode($data);
290 290
         $props = $this->props($m);
291 291
         $propsBind = array_map(
292
-            function ($p) {
292
+            function($p) {
293 293
                 return 'v-bind:' . $p . '="model.' . $p . '"';
294 294
             },
295 295
             array_keys($props)
Please login to merge, or discard this patch.
Formularium/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
     public function serialize(): array
126 126
     {
127 127
         $fields = array_map(
128
-            function ($f) {
128
+            function($f) {
129 129
                 return [
130 130
                     'datatype' => $f->getDatatype()->getName(),
131 131
                     'validators' => $f->getValidators(),
Please login to merge, or discard this patch.