| @@ -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]; | 
| @@ -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); | 
| @@ -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(); |