@@ -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('.', '..')) |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | // TODO: avoid abstract classes |
33 | 33 | $datatypes = array_filter( |
34 | 34 | $datatypes, |
35 | - function ($t) { |
|
35 | + function($t) { |
|
36 | 36 | return ($t !== 'number' && $t !== 'choice'); |
37 | 37 | } |
38 | 38 | ); |
@@ -27,7 +27,7 @@ |
||
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 HTMLElement) { |
32 | 32 | if ($e->getTag() === 'input') { |
33 | 33 | if (($e->getAttribute('type')[0] ?? '') === 'radio') { |