@@ -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 | } |
@@ -19,14 +19,14 @@ |
||
19 | 19 | |
20 | 20 | public function getVcfString(): string |
21 | 21 | { |
22 | - return $this->address->getNode() . ':' . $this->escape( |
|
22 | + return $this->address->getNode().':'.$this->escape( |
|
23 | 23 | $this->address->getPostOfficeBox() |
24 | - . ';' . $this->address->getExtendedAddress() |
|
25 | - . ';' . $this->address->getStreetAddress() |
|
26 | - . ';' . $this->address->getLocality() |
|
27 | - . ';' . $this->address->getRegion() |
|
28 | - . ';' . $this->address->getPostalCode() |
|
29 | - . ';' . $this->address->getCountryName() |
|
24 | + . ';'.$this->address->getExtendedAddress() |
|
25 | + . ';'.$this->address->getStreetAddress() |
|
26 | + . ';'.$this->address->getLocality() |
|
27 | + . ';'.$this->address->getRegion() |
|
28 | + . ';'.$this->address->getPostalCode() |
|
29 | + . ';'.$this->address->getCountryName() |
|
30 | 30 | ); |
31 | 31 | } |
32 | 32 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | { |
12 | 12 | $string = "BEGIN:VCARD\r\n"; |
13 | 13 | $string .= "VERSION:4.0\r\n"; |
14 | - $string .= 'REV:' . date('Y-m-d') . 'T' . date('H:i:s') . "Z\r\n"; |
|
14 | + $string .= 'REV:'.date('Y-m-d').'T'.date('H:i:s')."Z\r\n"; |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * @var VCard $vCard |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * @var PropertyInterface $property |
22 | 22 | */ |
23 | 23 | foreach ($vCard->getProperties() as $property) { |
24 | - $string .= $this->fold($property->getFormatter()->getVcfString() . "\r\n"); |
|
24 | + $string .= $this->fold($property->getFormatter()->getVcfString()."\r\n"); |
|
25 | 25 | } |
26 | 26 | } |
27 | 27 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | if (!$property->isAllowedMultipleTimes() && $this->hasProperty(get_class($property))) { |
28 | 28 | throw new \RuntimeException( |
29 | - 'The property "' . get_class($property) . '" you are trying to add can only be added once.' |
|
29 | + 'The property "'.get_class($property).'" you are trying to add can only be added once.' |
|
30 | 30 | ); |
31 | 31 | } |
32 | 32 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | return $this->properties; |
47 | 47 | } |
48 | 48 | |
49 | - return array_filter($this->properties, function (PropertyInterface $property) use ($filterByPropertyClass) { |
|
49 | + return array_filter($this->properties, function(PropertyInterface $property) use ($filterByPropertyClass) { |
|
50 | 50 | return $property instanceof $filterByPropertyClass; |
51 | 51 | }); |
52 | 52 | } |