@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | foreach ($list as $value => $label) { |
| 108 | 108 | $option_attributes = ['value' => $value]; |
| 109 | 109 | if ($selected == $value) { |
| 110 | - $option_attributes['selected'] = 'selected'; |
|
| 110 | + $option_attributes['selected'] = 'selected'; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | $options .= new Element('option', "$label", $option_attributes); |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | public static function legend(string $label, array $attributes = []): string |
| 127 | 127 | { |
| 128 | - return '' . (new Element('legend', $label, $attributes)); |
|
| 128 | + return ''.(new Element('legend', $label, $attributes)); |
|
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | public static function button(string $label, array $attributes = []): string |
| 148 | 148 | { |
| 149 | - return '' . (new Element('button', $label, $attributes)); |
|
| 149 | + return ''.(new Element('button', $label, $attributes)); |
|
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | /** |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | unset($attributes['label']); |
| 201 | 201 | $input = new Element($tag, $content, $attributes); |
| 202 | 202 | |
| 203 | - if($label_text){ |
|
| 203 | + if ($label_text) { |
|
| 204 | 204 | if (!empty($attributes['label-wrap'])) |
| 205 | 205 | $ret = self::label(null, $label_text.$input); |
| 206 | 206 | else |