@@ -53,7 +53,7 @@ |
||
53 | 53 | ['class' => "file-icon"], |
54 | 54 | HTMLNode::factory( |
55 | 55 | 'i', |
56 | - [ 'class' => "fas fa-upload" ] |
|
56 | + ['class' => "fas fa-upload"] |
|
57 | 57 | ) |
58 | 58 | ), |
59 | 59 | HTMLNode::factory( |
@@ -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 HTMLNode) { |
32 | 32 | if ($e->getTag() === 'input') { |
33 | 33 | if (($e->getAttribute('type')[0] ?? '') === 'radio') { |
@@ -59,12 +59,12 @@ |
||
59 | 59 | [], |
60 | 60 | HTMLNode::factory( |
61 | 61 | 'b-icon', |
62 | - [ 'icon' => "upload", 'size' => "is-large" ] |
|
62 | + ['icon' => "upload", 'size' => "is-large"] |
|
63 | 63 | ) |
64 | 64 | ), |
65 | 65 | HTMLNode::factory( |
66 | 66 | 'p', |
67 | - [ 'class' => 'formularium-label'], |
|
67 | + ['class' => 'formularium-label'], |
|
68 | 68 | $renderable[Renderable::LABEL] ?? '' |
69 | 69 | ) |
70 | 70 | ] |
@@ -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 HTMLNode) { |
32 | 32 | if ($e->getTag() === 'input') { |
33 | 33 | $e->setTag('b-datepicker'); |
@@ -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 HTMLNode) { |
32 | 32 | if ($e->getTag() === 'input') { |
33 | 33 | $e->setTag('b-datetimepicker'); |
@@ -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 HTMLNode) { |
32 | 32 | if ($e->getTag() === 'input') { |
33 | 33 | $e->setTag('b-clockpicker'); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | if (array_key_exists(Renderable::COMMENT, $renderable)) { |
33 | 33 | $base->setAttribute('message', $renderable[Renderable::COMMENT]); |
34 | 34 | } |
35 | - $base->filter(function ($e) { |
|
35 | + $base->filter(function($e) { |
|
36 | 36 | if ($e instanceof HTMLNode) { |
37 | 37 | if ($e->getTag() === 'label') { |
38 | 38 | return false; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | public function toMarkdown(): string |
40 | 40 | { |
41 | 41 | $args = array_map( |
42 | - function (MetadataParameter $a) { |
|
42 | + function(MetadataParameter $a) { |
|
43 | 43 | return $a->toMarkdown(); |
44 | 44 | }, |
45 | 45 | $this->args |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public function toGraphql(): string |
64 | 64 | { |
65 | 65 | $args = array_map( |
66 | - function (MetadataParameter $a) { |
|
66 | + function(MetadataParameter $a) { |
|
67 | 67 | return $a->toGraphql(); |
68 | 68 | }, |
69 | 69 | $this->args |
@@ -46,7 +46,7 @@ |
||
46 | 46 | 'class' => 'formularium-table__td' |
47 | 47 | ], |
48 | 48 | array_map( |
49 | - function ($i) { |
|
49 | + function($i) { |
|
50 | 50 | return HTMLNode::factory('td', [], $i); |
51 | 51 | }, |
52 | 52 | $data |