@@ -55,7 +55,7 @@ |
||
55 | 55 | * @param FieldInterface $field |
56 | 56 | * @param $value |
57 | 57 | * @param $labelText |
58 | - * @param $inline |
|
58 | + * @param boolean $inline |
|
59 | 59 | * @return DOMElement |
60 | 60 | */ |
61 | 61 | private function renderRadio(FieldInterface $field, $value, $labelText, $inline) |
@@ -78,9 +78,9 @@ |
||
78 | 78 | */ |
79 | 79 | private function getLabel(FieldInterface $field, string $labelText): DOMElement |
80 | 80 | { |
81 | - $this->counter ++; |
|
81 | + $this->counter++; |
|
82 | 82 | $label = $this->getDom()->createElement('label'); |
83 | - $label->setAttribute('for', $field->getId() . $this->counter); |
|
83 | + $label->setAttribute('for', $field->getId().$this->counter); |
|
84 | 84 | $label->setAttribute('class', 'form-check-label'); |
85 | 85 | $text = $this->createText($labelText); |
86 | 86 | $label->appendChild($text); |
@@ -97,9 +97,9 @@ discard block |
||
97 | 97 | */ |
98 | 98 | private function getLabel(FieldInterface $field, string $labelText): DOMElement |
99 | 99 | { |
100 | - $this->counter ++; |
|
100 | + $this->counter++; |
|
101 | 101 | $label = $this->getDom()->createElement('label'); |
102 | - $label->setAttribute('for', $field->getId() . $this->counter); |
|
102 | + $label->setAttribute('for', $field->getId().$this->counter); |
|
103 | 103 | $label->setAttribute('class', 'form-check-label'); |
104 | 104 | $text = $this->createText($labelText); |
105 | 105 | $label->appendChild($text); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $checkbox = $this->getDom()->createElement('input'); |
119 | 119 | $checkbox->setAttribute('class', 'form-check-input'); |
120 | 120 | $checkbox->setAttribute('type', 'checkbox'); |
121 | - $fieldName = $this->isMultiCheckbox ? $field->getName() . '[]' : $field->getName(); |
|
121 | + $fieldName = $this->isMultiCheckbox ? $field->getName().'[]' : $field->getName(); |
|
122 | 122 | $checkbox->setAttribute('name', $fieldName); |
123 | 123 | $checkbox->setAttribute('value', $value); |
124 | 124 | $fieldValue = $field->getValue(); |