@@ -11,14 +11,14 @@ |
||
| 11 | 11 | |
| 12 | 12 | public function viewableCompose(\Formularium\Model $m, array $elements, string $previousCompose): string |
| 13 | 13 | { |
| 14 | - return join('', array_map(function ($e) { |
|
| 14 | + return join('', array_map(function($e) { |
|
| 15 | 15 | return $e->__toString(); |
| 16 | 16 | }, $elements)); |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | public function editableCompose(\Formularium\Model $m, array $elements, string $previousCompose): string |
| 20 | 20 | { |
| 21 | - return join('', array_map(function ($e) { |
|
| 21 | + return join('', array_map(function($e) { |
|
| 22 | 22 | return $e->__toString(); |
| 23 | 23 | }, $elements)); |
| 24 | 24 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | $fields = []; |
| 31 | 31 | $datatypes = array_map( |
| 32 | - function ($x) { |
|
| 32 | + function($x) { |
|
| 33 | 33 | return str_replace('Datatype_', '', str_replace('.php', '', $x)); |
| 34 | 34 | }, |
| 35 | 35 | array_diff(scandir(__DIR__ . '/../Formularium/Datatype/'), array('.', '..')) |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | // TODO: avoid abstract classes |
| 38 | 38 | $datatypes = array_filter( |
| 39 | 39 | $datatypes, |
| 40 | - function ($t) { |
|
| 40 | + function($t) { |
|
| 41 | 41 | return ($t !== 'number'); |
| 42 | 42 | } |
| 43 | 43 | ); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | if (array_key_exists('comment', $extensions)) { |
| 32 | 32 | $base->setAttribute('message', $extensions['comment']); |
| 33 | 33 | } |
| 34 | - $base->filter(function ($e) { |
|
| 34 | + $base->filter(function($e) { |
|
| 35 | 35 | if ($e instanceof HTMLElement) { |
| 36 | 36 | if ($e->getTag() === 'label') { |
| 37 | 37 | return false; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | // add extra classes |
| 28 | 28 | $previous->walk( |
| 29 | - function ($e) { |
|
| 29 | + function($e) { |
|
| 30 | 30 | if ($e instanceof HTMLElement) { |
| 31 | 31 | if ($e->getTag() === 'input') { |
| 32 | 32 | $e->setTag('b-input'); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | // add extra classes |
| 29 | 29 | $previous->walk( |
| 30 | - function ($e) { |
|
| 30 | + function($e) { |
|
| 31 | 31 | if ($e instanceof HTMLElement) { |
| 32 | 32 | if ($e->getTag() === 'input') { |
| 33 | 33 | $e->setTag('b-datepicker'); |