@@ -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 | } |
@@ -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 | } |
@@ -20,6 +20,6 @@ |
||
20 | 20 | |
21 | 21 | public function getVcfString(): string |
22 | 22 | { |
23 | - return $this->version->getNode() . ':' . $this->version->getValue(); |
|
23 | + return $this->version->getNode().':'.$this->version->getValue(); |
|
24 | 24 | } |
25 | 25 | } |
@@ -18,6 +18,6 @@ |
||
18 | 18 | |
19 | 19 | public function getVcfString(): string |
20 | 20 | { |
21 | - return $this->fullName->getNode() . ':' . $this->escape($this->fullName->getValue()); |
|
21 | + return $this->fullName->getNode().':'.$this->escape($this->fullName->getValue()); |
|
22 | 22 | } |
23 | 23 | } |
@@ -19,15 +19,15 @@ |
||
19 | 19 | public function getVcfString(): string |
20 | 20 | { |
21 | 21 | $string = $this->address->getNode(); |
22 | - $string .= ';TYPE=' . $this->address->getType()->__toString(); |
|
23 | - $string .=':' . $this->escape( |
|
22 | + $string .= ';TYPE='.$this->address->getType()->__toString(); |
|
23 | + $string .= ':'.$this->escape( |
|
24 | 24 | $this->address->getPostOfficeBox() |
25 | - . ';' . $this->address->getExtendedAddress() |
|
26 | - . ';' . $this->address->getStreetAddress() |
|
27 | - . ';' . $this->address->getLocality() |
|
28 | - . ';' . $this->address->getRegion() |
|
29 | - . ';' . $this->address->getPostalCode() |
|
30 | - . ';' . $this->address->getCountryName() |
|
25 | + . ';'.$this->address->getExtendedAddress() |
|
26 | + . ';'.$this->address->getStreetAddress() |
|
27 | + . ';'.$this->address->getLocality() |
|
28 | + . ';'.$this->address->getRegion() |
|
29 | + . ';'.$this->address->getPostalCode() |
|
30 | + . ';'.$this->address->getCountryName() |
|
31 | 31 | ); |
32 | 32 | |
33 | 33 | return $string; |
@@ -22,14 +22,14 @@ |
||
22 | 22 | * @var PropertyParameterInterface $parameter |
23 | 23 | */ |
24 | 24 | foreach ($vCard->getParameters() as $parameter) { |
25 | - $string .= $this->fold($parameter->getFormatter()->getVcfString() . "\r\n"); |
|
25 | + $string .= $this->fold($parameter->getFormatter()->getVcfString()."\r\n"); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @var PropertyInterface $property |
30 | 30 | */ |
31 | 31 | foreach ($vCard->getProperties() as $property) { |
32 | - $string .= $this->fold($property->getFormatter()->getVcfString() . "\r\n"); |
|
32 | + $string .= $this->fold($property->getFormatter()->getVcfString()."\r\n"); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | $string .= "END:VCARD\r\n"; |