Passed
Pull Request — master (#32)
by Bruno
08:58
created
Formularium/CodeGenerator/CodeGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
24 24
     {
25 25
         $classes = DatatypeGeneratorFactory::factoryAll($this);
26 26
         $declarations = array_map(
27
-            fn ($c) => $c->datatypeDeclaration(),
27
+            fn($c) => $c->datatypeDeclaration(),
28 28
             $classes
29 29
         );
30
-        $cleanDeclarations = array_filter($declarations, fn ($d) => $d);
30
+        $cleanDeclarations = array_filter($declarations, fn($d) => $d);
31 31
         return join("\n", $cleanDeclarations);
32 32
     }
33 33
 
Please login to merge, or discard this patch.
Formularium/Factory/CodeGeneratorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
     public static function factoryAll(): array
75 75
     {
76 76
         return array_map(
77
-            function ($f) {
77
+            function($f) {
78 78
                 $fName = $f . '\\CodeGenerator';
79 79
                 return new $fName();
80 80
             },
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
@@ -65,6 +65,6 @@
 block discarded – undo
65 65
     {
66 66
         $reflection = new ReflectionClass($codeGenerator);
67 67
         $classes = ClassFinder::getClassesInNamespace($reflection->getNamespaceName());
68
-        return array_map(fn ($c) => new $c(), $classes);
68
+        return array_map(fn($c) => new $c(), $classes);
69 69
     }
70 70
 }
Please login to merge, or discard this patch.