@@ -34,7 +34,7 @@ |
||
34 | 34 | $label = $base->get('label.formularium-label'); |
35 | 35 | if (!empty($label)) { |
36 | 36 | // delete |
37 | - $base->filter(function ($e) { |
|
37 | + $base->filter(function($e) { |
|
38 | 38 | return !($e->getTag() === 'label' && $e->getAttribute('class') === ['formularium-label']); |
39 | 39 | }); |
40 | 40 | // fix class |
@@ -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 | /** |
@@ -85,9 +85,9 @@ |
||
85 | 85 | 'Zero width or height' |
86 | 86 | ); |
87 | 87 | } |
88 | - $ratio = $width/$height; |
|
88 | + $ratio = $width / $height; |
|
89 | 89 | $expected = $ratio; |
90 | - if (abs(($ratio-$expected)/$expected) > 0.0001) { |
|
90 | + if (abs(($ratio - $expected) / $expected) > 0.0001) { |
|
91 | 91 | throw new ValidatorException( |
92 | 92 | 'Image width/height ratio should be ' . $ratio |
93 | 93 | ); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ['BM', 'BMU', '060', 'Bermuda'], |
74 | 74 | ['BN', 'BRN', '096', 'Brunei Darussalam'], |
75 | 75 | ['BO', 'BOL', '068', 'Bolivia, Plurinational State of'], |
76 | - ['BQ', 'ATB', null, 'British Antarctic Territory'], |
|
76 | + ['BQ', 'ATB', null, 'British Antarctic Territory'], |
|
77 | 77 | ['BQ', 'BES', '535', 'Bonaire, Sint Eustatius and Saba'], |
78 | 78 | ['BR', 'BRA', '076', 'Brazil'], |
79 | 79 | ['BS', 'BHS', '044', 'Bahamas'], |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | ['FK', 'FLK', '238', 'Falkland Islands (Malvinas)'], |
127 | 127 | ['FM', 'FSM', '583', 'Micronesia, Federated States of'], |
128 | 128 | ['FO', 'FRO', '234', 'Faroe Islands'], |
129 | - ['FQ', 'ATF', null, 'French Southern and Antarctic Territories'], |
|
129 | + ['FQ', 'ATF', null, 'French Southern and Antarctic Territories'], |
|
130 | 130 | ['FR', 'FRA', '250', 'France'], |
131 | 131 | ['FX', 'FXX', '249', 'France, Metropolitan'], |
132 | 132 | ['GA', 'GAB', '266', 'Gabon'], |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | ['PU', 'PUS', '849', 'US Miscellaneous Pacific Islands'], |
250 | 250 | ['PW', 'PLW', '585', 'Palau'], |
251 | 251 | ['PY', 'PRY', '600', 'Paraguay'], |
252 | - ['PZ', 'PCZ', null, 'Panama Canal Zone'], |
|
252 | + ['PZ', 'PCZ', null, 'Panama Canal Zone'], |
|
253 | 253 | ['QA', 'QAT', '634', 'Qatar'], |
254 | 254 | ['RE', 'REU', '638', 'Réunion'], |
255 | 255 | ['RH', 'RHO', '716', 'Southern Rhodesia'], |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | ['SH', 'SHN', '654', 'Saint Helena, Ascension and Tristan da Cunha'], |
267 | 267 | ['SI', 'SVN', '705', 'Slovenia'], |
268 | 268 | ['SJ', 'SJM', '744', 'Svalbard and Jan Mayen'], |
269 | - ['SK', 'SKM', null, 'Sikkim'], |
|
269 | + ['SK', 'SKM', null, 'Sikkim'], |
|
270 | 270 | ['SK', 'SVK', '703', 'Slovakia'], |
271 | 271 | ['SL', 'SLE', '694', 'Sierra Leone'], |
272 | 272 | ['SM', 'SMR', '674', 'San Marino'], |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | ['UZ', 'UZB', '860', 'Uzbekistan'], |
306 | 306 | ['VA', 'VAT', '336', 'Holy See (Vatican City State)'], |
307 | 307 | ['VC', 'VCT', '670', 'Saint Vincent and the Grenadines'], |
308 | - ['VD', 'VDR', null, 'Viet-Nam, Democratic Republic of'], |
|
308 | + ['VD', 'VDR', null, 'Viet-Nam, Democratic Republic of'], |
|
309 | 309 | ['VE', 'VEN', '862', 'Venezuela, Bolivarian Republic of'], |
310 | 310 | ['VG', 'VGB', '092', 'Virgin Islands, British'], |
311 | 311 | ['VI', 'VIR', '850', 'Virgin Islands, U.S.'], |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function fix($value, Field $field, HTMLNode $previous): HTMLNode |
27 | 27 | { |
28 | - $previous->walk(function (HTMLNode $element) use ($field) { |
|
28 | + $previous->walk(function(HTMLNode $element) use ($field) { |
|
29 | 29 | if ($element->getTag() === 'input') { |
30 | 30 | if ($element->getAttribute('type') === ['checkbox']) { |
31 | 31 | $element->setAttribute('checked', "{this.state.{$field->getName()}}"); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function editable($value, Field $field, HTMLNode $previous): HTMLNode |
16 | 16 | { |
17 | 17 | $previous->filter( |
18 | - function ($e) { |
|
18 | + function($e) { |
|
19 | 19 | if ($e->getTag() === 'canvas') { |
20 | 20 | return false; |
21 | 21 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | if ($icon) { |
26 | 26 | $iconElement = HTMLNode::factory( |
27 | 27 | 'i', |
28 | - [ 'class' => "material-icons left" ], |
|
28 | + ['class' => "material-icons left"], |
|
29 | 29 | $icon |
30 | 30 | ); |
31 | 31 | $previous->prependContent($iconElement); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | [ |
41 | 41 | HTMLNode::factory( |
42 | 42 | 'i', |
43 | - [ 'class' => $iconData ], |
|
43 | + ['class' => $iconData], |
|
44 | 44 | [] |
45 | 45 | ) |
46 | 46 | ] |
@@ -56,11 +56,11 @@ |
||
56 | 56 | $iconData[] = $icon; |
57 | 57 | $iconElement = HTMLNode::factory( |
58 | 58 | 'span', |
59 | - [ 'class' => "icon is-small is-left" ], |
|
59 | + ['class' => "icon is-small is-left"], |
|
60 | 60 | [ |
61 | 61 | HTMLNode::factory( |
62 | 62 | 'i', |
63 | - [ 'class' => $iconData ], |
|
63 | + ['class' => $iconData], |
|
64 | 64 | [] |
65 | 65 | ) |
66 | 66 | ] |