Test Failed
Push — master ( e97986...2933e0 )
by Bruno
19:41 queued 09:43
created
Formularium/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -341,7 +341,7 @@
 block discarded – undo
341 341
     public function serialize(): array
342 342
     {
343 343
         $fields = array_map(
344
-            function (Field $f) {
344
+            function(Field $f) {
345 345
                 return [
346 346
                     'datatype' => $f->getDatatype()->getName(),
347 347
                     'validators' => $f->getValidators(),
Please login to merge, or discard this patch.
Formularium/CodeGenerator/LaravelEloquent/CodeGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         return implode(
18 18
             ";\n",
19 19
             array_map(
20
-                function ($f) {
20
+                function($f) {
21 21
                     return '$table->' . $f;
22 22
                 },
23 23
                 $this->fields($model)
Please login to merge, or discard this patch.
Formularium/Factory/DatatypeGeneratorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         $reflection = new ReflectionClass($codeGenerator);
67 67
         $classes = ClassFinder::getClassesInNamespace($reflection->getNamespaceName());
68 68
         return array_map(
69
-            function ($c) {
69
+            function($c) {
70 70
                 return new $c();
71 71
             },
72 72
             $classes
Please login to merge, or discard this patch.
Formularium/CodeGenerator/CodeGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
     {
29 29
         $classes = DatatypeGeneratorFactory::factoryAll($this);
30 30
         $declarations = array_map(
31
-            function (DatatypeGenerator $c) {
31
+            function(DatatypeGenerator $c) {
32 32
                 return $c->datatypeDeclaration($this);
33 33
             },
34 34
             $classes
35 35
         );
36
-        $cleanDeclarations = array_filter($declarations, function ($d) {
36
+        $cleanDeclarations = array_filter($declarations, function($d) {
37 37
             return $d;
38 38
         });
39 39
         return join("\n", $cleanDeclarations);
Please login to merge, or discard this patch.
Formularium/CodeGenerator/GraphQL/GraphQLDatatypeGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
          * @var GraphQLCodeGenerator $generator
41 41
          */
42 42
         $renderable = array_map(
43
-            function ($name, $value) {
43
+            function($name, $value) {
44 44
                 $v = $value;
45 45
                 if (is_string($value)) {
46 46
                     $v = '"' . str_replace('"', '\\"', $value) . '"';
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             $field->getRenderables()
52 52
         );
53 53
 
54
-        return $field->getName() . ': ' . $this->getDatatypeName($generator)  .
54
+        return $field->getName() . ': ' . $this->getDatatypeName($generator) .
55 55
             ($field->getValidatorOption(Datatype::REQUIRED, 'value', false) ? '!' : '') .
56 56
             // TODO: validators
57 57
             ($field->getRenderables() ? " @renderable(\n" . join("\n", $renderable) . "\n)" : '') .
Please login to merge, or discard this patch.
Formularium/Frontend/HTML/Framework.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             $atts,
121 121
             join(
122 122
                 '',
123
-                array_map(function ($e) {
123
+                array_map(function($e) {
124 124
                     return $e->__toString();
125 125
                 }, $elements)
126 126
             ),
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
     public function editableCompose(\Formularium\Model $m, array $elements, string $previousCompose, FrameworkComposer $composer): string
132 132
     {
133
-        return join('', array_map(function ($e) {
133
+        return join('', array_map(function($e) {
134 134
             return $e->__toString();
135 135
         }, $elements));
136 136
     }
Please login to merge, or discard this patch.
Formularium/Frontend/Vuetify/RenderableVuetifyInputTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 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') {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
         $options = [];
91 91
         $select->walk(
92
-            function (HTMLNode $e) use (&$options) {
92
+            function(HTMLNode $e) use (&$options) {
93 93
                 if ($e->getTag() == 'option') {
94 94
                     $idx = $e->getAttribute('value')[0] ?? '';
95 95
                     $text = $e->getContent()[0] ?? '';
Please login to merge, or discard this patch.
Formularium/Frontend/Vuetify/Renderable/Renderable_time.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         // add extra classes
30 30
         $previous->walk(
31
-            function ($e) {
31
+            function($e) {
32 32
                 if ($e instanceof HTMLNode) {
33 33
                     if ($e->getTag() === 'input') {
34 34
                         $e->setTag('v-time-picker');
Please login to merge, or discard this patch.
Formularium/Frontend/Vuetify/Renderable/Renderable_color.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         // add extra classes
31 31
         $previous->walk(
32
-            function ($e) {
32
+            function($e) {
33 33
                 if ($e instanceof HTMLNode) {
34 34
                     if ($e->getTag() === 'input') {
35 35
                         $e->setTag('v-color-picker');
Please login to merge, or discard this patch.