@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | foreach ($list as $value => $label) { |
73 | 73 | $option_attributes = ['value' => $value]; |
74 | 74 | if ($selected == $value) { |
75 | - $option_attributes['selected'] = 'selected'; |
|
75 | + $option_attributes['selected'] = 'selected'; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | $options .= new Element('option', "$label", $option_attributes); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | public static function legend(string $label, array $attributes = []): string |
85 | 85 | { |
86 | - return '' . (new Element('legend', $label, $attributes)); |
|
86 | + return ''.(new Element('legend', $label, $attributes)); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | public static function label(string $for, string $label, array $attributes = [], array $errors = []): string |
@@ -128,10 +128,10 @@ discard block |
||
128 | 128 | |
129 | 129 | $label = ''; |
130 | 130 | if (isset($attributes['label'])) { |
131 | - $label = self::label($attributes['id'], $attributes['label'], [], ['' . $attributes['id'] => 'error']); |
|
131 | + $label = self::label($attributes['id'], $attributes['label'], [], [''.$attributes['id'] => 'error']); |
|
132 | 132 | unset($attributes['label']); |
133 | 133 | } |
134 | 134 | |
135 | - return $label . (new Element($tag, $content, $attributes)); |
|
135 | + return $label.(new Element($tag, $content, $attributes)); |
|
136 | 136 | } |
137 | 137 | } |