Passed
Push — master ( ea62c3...cd2ef0 )
by Bruno
09:11
created
Formularium/Formularium.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
             throw new Exception('Datatypes not found');
23 23
         }
24 24
         $datatypes = array_map(
25
-            function ($x) {
25
+            function($x) {
26 26
                 return str_replace('Datatype_', '', str_replace('.php', '', $x));
27 27
             },
28 28
             array_diff($files, array('.', '..'))
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         // TODO: avoid abstract classes
32 32
         $datatypes = array_filter(
33 33
             $datatypes,
34
-            function ($t) {
34
+            function($t) {
35 35
                 return ($t !== 'number' && $t !== 'choice' && $t !== 'association');
36 36
             }
37 37
         );
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             throw new Exception('Validators not found');
52 52
         }
53 53
         $validators = array_map(
54
-            function ($x) {
54
+            function($x) {
55 55
                 return str_replace('.php', '', $x);
56 56
             },
57 57
             array_diff($files, array('.', '..'))
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         foreach ($validators as $name => $v) {
88 88
             $args = array_map(
89
-                function ($a) {
89
+                function($a) {
90 90
                     return <<<EOF
91 91
     """
92 92
     {$a['comment']}
Please login to merge, or discard this patch.
Formularium/ValidatorMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     public function toGraphql(): string
31 31
     {
32 32
         $args = array_map(
33
-            function (ValidatorArgs $a) {
33
+            function(ValidatorArgs $a) {
34 34
                 return $a->toGraphql();
35 35
             },
36 36
             $this->args
Please login to merge, or discard this patch.