@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | $fields = []; |
26 | 26 | $datatypes = array_map( |
27 | - function ($x) { |
|
27 | + function($x) { |
|
28 | 28 | return str_replace('Datatype_', '', str_replace('.php', '', $x)); |
29 | 29 | }, |
30 | 30 | array_diff(scandir(__DIR__ . '/../Formularium/Datatype/'), array('.', '..')) |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | // TODO: avoid abstract classes |
34 | 34 | $datatypes = array_filter( |
35 | 35 | $datatypes, |
36 | - function ($t) { |
|
36 | + function($t) { |
|
37 | 37 | return ($t !== 'number' && $t !== 'choice' && $t !== 'association'); |
38 | 38 | } |
39 | 39 | ); |
@@ -125,7 +125,7 @@ |
||
125 | 125 | public function toJSON(): string |
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(), |