@@ -20,8 +20,8 @@ |
||
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 | } |
@@ -66,14 +66,14 @@ discard block |
||
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 |
||
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 |
@@ -18,6 +18,6 @@ |
||
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 | } |
@@ -12,21 +12,21 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -6,6 +6,6 @@ |
||
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 | } |
@@ -14,7 +14,7 @@ |
||
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 | } |
@@ -20,6 +20,6 @@ |
||
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 | } |
@@ -20,6 +20,6 @@ |
||
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 | } |
@@ -20,6 +20,6 @@ |
||
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 | } |