| @@ -57,9 +57,9 @@ | ||
| 57 | 57 | |
| 58 | 58 | private function getLabel(FieldInterface $field, string $labelText): DOMElement | 
| 59 | 59 |      {
 | 
| 60 | - $this->counter ++; | |
| 60 | + $this->counter++; | |
| 61 | 61 |          $label = $this->getDom()->createElement('label');
 | 
| 62 | -        $label->setAttribute('for', $field->getId() . $this->counter);
 | |
| 62 | +        $label->setAttribute('for', $field->getId().$this->counter);
 | |
| 63 | 63 |          $label->setAttribute('class', 'form-check-label');
 | 
| 64 | 64 | $text = $this->createText($labelText); | 
| 65 | 65 | $label->appendChild($text); | 
| @@ -49,7 +49,7 @@ discard block | ||
| 49 | 49 | $path = realpath($path); | 
| 50 | 50 | |
| 51 | 51 |          if (!is_dir($path) || !is_writable($path)) { | 
| 52 | -            throw new InvalidArgumentException('Directory ' . $path . ' does not exist or is not writable.'); | |
| 52 | +            throw new InvalidArgumentException('Directory '.$path.' does not exist or is not writable.'); | |
| 53 | 53 | } | 
| 54 | 54 | |
| 55 | 55 | $this->uploadDirectory = $path; | 
| @@ -72,7 +72,7 @@ discard block | ||
| 72 | 72 | } | 
| 73 | 73 | |
| 74 | 74 | $tmp = $this->files[$this->getName()]['tmp_name']; | 
| 75 | - $destination = $this->getUploadDirectory() . DIRECTORY_SEPARATOR . $this->files[$this->getName()]['name']; | |
| 75 | + $destination = $this->getUploadDirectory().DIRECTORY_SEPARATOR.$this->files[$this->getName()]['name']; | |
| 76 | 76 | |
| 77 | 77 | return \move_uploaded_file($tmp, $destination); | 
| 78 | 78 | } | 
| @@ -65,9 +65,9 @@ discard block | ||
| 65 | 65 | |
| 66 | 66 | private function getLabel(FieldInterface $field, string $labelText): DOMElement | 
| 67 | 67 |      { | 
| 68 | - $this->counter ++; | |
| 68 | + $this->counter++; | |
| 69 | 69 |          $label = $this->getDom()->createElement('label'); | 
| 70 | -        $label->setAttribute('for', $field->getId() . $this->counter); | |
| 70 | +        $label->setAttribute('for', $field->getId().$this->counter); | |
| 71 | 71 |          $label->setAttribute('class', 'form-check-label'); | 
| 72 | 72 | $text = $this->createText($labelText); | 
| 73 | 73 | $label->appendChild($text); | 
| @@ -80,7 +80,7 @@ discard block | ||
| 80 | 80 |          $checkbox = $this->getDom()->createElement('input'); | 
| 81 | 81 |          $checkbox->setAttribute('class', 'form-check-input'); | 
| 82 | 82 |          $checkbox->setAttribute('type', 'checkbox'); | 
| 83 | - $fieldName = $this->isMultiCheckbox ? $field->getName() . '[]' : $field->getName(); | |
| 83 | + $fieldName = $this->isMultiCheckbox ? $field->getName().'[]' : $field->getName(); | |
| 84 | 84 |          $checkbox->setAttribute('name', $fieldName); | 
| 85 | 85 |          $checkbox->setAttribute('value', (string) $value); | 
| 86 | 86 | $fieldValue = $field->getValue(); |