Passed
Branch new-version (72fcef)
by Jeroen
03:10
created
src/Formatter/Property/NameFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
 
21 21
     public function getVcfString(): string
22 22
     {
23
-        return $this->name->getNode() . ':' . $this->escape(
24
-            $this->name->getFirstName() . ';' . $this->name->getAdditional() . ';' . $this->name->getLastName() . ';' . $this->name->getPrefix() . ';' . $this->name->getSuffix()
23
+        return $this->name->getNode().':'.$this->escape(
24
+            $this->name->getFirstName().';'.$this->name->getAdditional().';'.$this->name->getLastName().';'.$this->name->getPrefix().';'.$this->name->getSuffix()
25 25
         );
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Formatter/Formatter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,14 +66,14 @@  discard block
 block discarded – undo
66 66
 
67 67
     public function getFullFileName(): string
68 68
     {
69
-        return $this->getFileName() . '.' . $this->formatter->getFileExtension();
69
+        return $this->getFileName().'.'.$this->formatter->getFileExtension();
70 70
     }
71 71
 
72 72
     public function getHeaders(): array
73 73
     {
74 74
         return [
75
-            'Content-type' => $this->formatter->getContentType() . '; charset=' . $this->getCharset(),
76
-            'Content-Disposition' => 'attachment; filename=' . $this->getFullFileName(),
75
+            'Content-type' => $this->formatter->getContentType().'; charset='.$this->getCharset(),
76
+            'Content-Disposition' => 'attachment; filename='.$this->getFullFileName(),
77 77
             'Content-Length' => mb_strlen($this->getContent(), $this->getCharset()),
78 78
             'Connection' => 'close',
79 79
         ];
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         try {
90 90
             $savedBytes = file_put_contents(
91
-                rtrim($toPath, '/') . '/' . $this->getFullFileName(),
91
+                rtrim($toPath, '/').'/'.$this->getFullFileName(),
92 92
                 $this->getContent()
93 93
             );
94 94
 
Please login to merge, or discard this patch.
src/Formatter/Property/NoteFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function getVcfString(): string
20 20
     {
21
-        return $this->note->getNode() . ':' . $this->escape($this->note->getValue());
21
+        return $this->note->getNode().':'.$this->escape($this->note->getValue());
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Exception/VCardException.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,21 +12,21 @@  discard block
 block discarded – undo
12 12
     public static function forExistingProperty(PropertyInterface $property): self
13 13
     {
14 14
         return new self(
15
-            'The property "' . get_class($property) . '" you are trying to add can only be added once.'
15
+            'The property "'.get_class($property).'" you are trying to add can only be added once.'
16 16
         );
17 17
     }
18 18
 
19 19
     public static function forExistingPropertyParameter(PropertyParameterInterface $parameter): self
20 20
     {
21 21
         return new self(
22
-            'The property parameter "' . get_class($parameter) . '" you are trying to add can only be added once.'
22
+            'The property parameter "'.get_class($parameter).'" you are trying to add can only be added once.'
23 23
         );
24 24
     }
25 25
 
26 26
     public static function forNotAllowedNode(NodeInterface $node): self
27 27
     {
28 28
         return new self(
29
-            'The node "' . get_class($node) . '" you are trying to add is not allowed. Possible values are: '
29
+            'The node "'.get_class($node).'" you are trying to add is not allowed. Possible values are: '
30 30
             . implode(', ', VCard::POSSIBLE_VALUES)
31 31
         );
32 32
     }
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public static function forNotAllowedProperty(PropertyInterface $property): self
35 35
     {
36 36
         return new self(
37
-            'The property "' . get_class($property) . '" you are trying to add is not allowed. Possible values are: '
37
+            'The property "'.get_class($property).'" you are trying to add is not allowed. Possible values are: '
38 38
             . implode(', ', VCard::POSSIBLE_PROPERTIES)
39 39
         );
40 40
     }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     public static function forNotAllowedPropertyParameter(PropertyParameterInterface $parameter): self
43 43
     {
44 44
         return new self(
45
-            'The property parameter "' . get_class($parameter) . '" you are trying to add is not allowed. Possible values are: '
45
+            'The property parameter "'.get_class($parameter).'" you are trying to add is not allowed. Possible values are: '
46 46
             . implode(', ', VCard::POSSIBLE_PARAMETERS)
47 47
         );
48 48
     }
Please login to merge, or discard this patch.
src/Exception/FormatterException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 {
7 7
     public static function forUnreadableVCard(string $input): self
8 8
     {
9
-        return new self('The given input "' . $input . '" is not a VCard.');
9
+        return new self('The given input "'.$input.'" is not a VCard.');
10 10
     }
11 11
 }
Please login to merge, or discard this patch.
src/Exception/PropertyParameterException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public static function forWrongValue(string $value, array $possibleValues): self
15 15
     {
16 16
         return new self(
17
-            'The given type "' . $value . '" is not allowed. Possible values are: ' . implode(', ', $possibleValues)
17
+            'The given type "'.$value.'" is not allowed. Possible values are: '.implode(', ', $possibleValues)
18 18
         );
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
src/Formatter/Property/Parameter/TypeFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
 
21 21
     public function getVcfString(): string
22 22
     {
23
-        return $this->type->getNode() . ':' . $this->type->getValue();
23
+        return $this->type->getNode().':'.$this->type->getValue();
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
src/Formatter/Property/Parameter/RevisionFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
 
21 21
     public function getVcfString(): string
22 22
     {
23
-        return $this->revision->getNode() . ':' . $this->revision->getValue();
23
+        return $this->revision->getNode().':'.$this->revision->getValue();
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
src/Formatter/Property/Parameter/KindFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
 
21 21
     public function getVcfString(): string
22 22
     {
23
-        return $this->kind->getNode() . ':' . $this->kind->getValue();
23
+        return $this->kind->getNode().':'.$this->kind->getValue();
24 24
     }
25 25
 }
Please login to merge, or discard this patch.