@@ -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 | ); |
@@ -19,10 +19,10 @@ |
||
| 19 | 19 | protected $mode = self::VUE_MODE_EMBEDDED; |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | - * The tag used as container for fields in viewable() |
|
| 23 | - * |
|
| 24 | - * @var string |
|
| 25 | - */ |
|
| 22 | + * The tag used as container for fields in viewable() |
|
| 23 | + * |
|
| 24 | + * @var string |
|
| 25 | + */ |
|
| 26 | 26 | protected $viewableContainerTag = 'div'; |
| 27 | 27 | |
| 28 | 28 | /** |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | public function serialize(): array |
| 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(), |
@@ -61,12 +61,12 @@ |
||
| 61 | 61 | [], |
| 62 | 62 | HTMLElement::factory( |
| 63 | 63 | 'b-icon', |
| 64 | - [ 'icon' => "upload", 'size' => "is-large" ] |
|
| 64 | + ['icon' => "upload", 'size' => "is-large"] |
|
| 65 | 65 | ) |
| 66 | 66 | ), |
| 67 | 67 | HTMLElement::factory( |
| 68 | 68 | 'p', |
| 69 | - [ 'class' => 'formularium-label'], |
|
| 69 | + ['class' => 'formularium-label'], |
|
| 70 | 70 | $extensions[Renderable::LABEL] ?? '' |
| 71 | 71 | ) |
| 72 | 72 | ] |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | ['class' => "file-icon"], |
| 46 | 46 | HTMLElement::factory( |
| 47 | 47 | 'i', |
| 48 | - [ 'class' => "fas fa-upload" ] |
|
| 48 | + ['class' => "fas fa-upload"] |
|
| 49 | 49 | ) |
| 50 | 50 | ), |
| 51 | 51 | HTMLElement::factory( |
@@ -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-clockpicker'); |