Passed
Push — master ( 1e4020...b3ba86 )
by Bruno
07:15
created
Formularium/Frontend/Vue/Framework.php 1 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/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, HTMLElement $previous): HTMLElement
27 27
     {
28
-        $previous->walk(function (HTMLElement $element) use ($field) {
28
+        $previous->walk(function(HTMLElement $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.