@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | foreach ($this->attributeList as $k => $v) { |
| 34 | 34 | if (!is_null($v) && $v !== '' && !is_array($v)) { |
| 35 | - $ret .= is_int($k) ? " $v" : sprintf(' %s="%s"', $k, $v); |
|
| 35 | + $ret .= is_int($k) ? " $v" : sprintf(' %s="%s"', $k, $v); |
|
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | |
@@ -12,10 +12,10 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | // arguments [name, value, [attributes], [errors]] |
| 14 | 14 | $i = 0; |
| 15 | - $field_name = $arguments[$i++] ?? null; |
|
| 15 | + $field_name = $arguments[$i++] ?? null; |
|
| 16 | 16 | $field_value = $arguments[$i++] ?? null; |
| 17 | - $attributes = $arguments[$i++] ?? []; |
|
| 18 | - $errors = $arguments[$i++] ?? []; |
|
| 17 | + $attributes = $arguments[$i++] ?? []; |
|
| 18 | + $errors = $arguments[$i++] ?? []; |
|
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | $attributes['type'] = $element_type; |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | foreach ($option_list as $value => $label) { |
| 64 | 64 | $option_attributes = ['value' => $value]; |
| 65 | 65 | if ($selected == $value) { |
| 66 | - $option_attributes['selected'] = 'selected'; |
|
| 66 | + $option_attributes['selected'] = 'selected'; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | $options .= new Element('option', $label, $option_attributes); |
@@ -113,6 +113,6 @@ discard block |
||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | // vd($attributes, $tag); |
| 116 | - return $label . (new Element($tag, $content, $attributes)); |
|
| 116 | + return $label.(new Element($tag, $content, $attributes)); |
|
| 117 | 117 | } |
| 118 | 118 | } |