@@ -36,12 +36,12 @@ |
||
| 36 | 36 | { |
| 37 | 37 | $validExtensions = $this->validExtensions; |
| 38 | 38 | $last = array_pop($validExtensions); |
| 39 | - $extensions = 'The file must be a ' . $last . ' file.'; |
|
| 39 | + $extensions = 'The file must be a '.$last.' file.'; |
|
| 40 | 40 | |
| 41 | 41 | if (count($validExtensions) > 0) { |
| 42 | 42 | $extensions = implode(', ', $validExtensions); |
| 43 | - $extensions .= ' or ' . $last; |
|
| 44 | - $extensions = 'The file must be either a ' . $extensions . ' file.'; |
|
| 43 | + $extensions .= ' or '.$last; |
|
| 44 | + $extensions = 'The file must be either a '.$extensions.' file.'; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | return [$extensions]; |
@@ -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(); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | if ($field instanceof MultiSelect) {
|
| 25 | - $element->setAttribute('name', $field->getName() . '[]');
|
|
| 25 | + $element->setAttribute('name', $field->getName().'[]');
|
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | foreach ($field->getOptions() as $value => $label) {
|
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | throw new InvalidArgumentException('Must be a Del\Form\Field\MultiSelect');
|
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - $element->setAttribute('name', $field->getName() . '[]');
|
|
| 24 | + $element->setAttribute('name', $field->getName().'[]');
|
|
| 25 | 25 | |
| 26 | 26 | foreach ($field->getOptions() as $value => $label) {
|
| 27 | 27 | $option = $this->processOption($field, $value, $label); |