Passed
Push — master ( ff6e33...6f3a15 )
by Derek Stephen
02:10 queued 17s
created
src/Validator/FileExtensionValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/Renderer/Field/MultiSelectRender.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Renderer/Field/RadioRender.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Field/FileUpload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Renderer/Field/CheckboxRender.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Validator/MaxLength.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 
20 20
     public function getMessages(): array
21 21
     {
22
-        return ['Exceeded maximum length of ' . $this->maxLength];
22
+        return ['Exceeded maximum length of '.$this->maxLength];
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
src/Validator/MinLength.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 
20 20
     public function getMessages(): array
21 21
     {
22
-        return ['Minimum length must be ' . $this->minLength];
22
+        return ['Minimum length must be '.$this->minLength];
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
src/Traits/HasFormFields.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
     private function setField(string $fieldName, string $fieldType, mixed $value): void
45 45
     {
46
-        $setter = 'set' . ucfirst($fieldName);
46
+        $setter = 'set'.ucfirst($fieldName);
47 47
 
48 48
         switch ($fieldType) {
49 49
             case 'checkbox':
Please login to merge, or discard this patch.