@@ -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"; |
@@ -38,7 +38,7 @@ |
||
38 | 38 | return $vCards; |
39 | 39 | } |
40 | 40 | |
41 | - private function parseParameters(?string $parameters): array |
|
41 | + private function parseParameters(?string $parameters) : array |
|
42 | 42 | { |
43 | 43 | if ($parameters === null) { |
44 | 44 | return []; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | return $this->parameters; |
80 | 80 | } |
81 | 81 | |
82 | - return array_filter($this->parameters, function (PropertyParameterInterface $parameter) use ($filterByPropertyParameterClass) { |
|
82 | + return array_filter($this->parameters, function(PropertyParameterInterface $parameter) use ($filterByPropertyParameterClass) { |
|
83 | 83 | return $parameter instanceof $filterByPropertyParameterClass; |
84 | 84 | }); |
85 | 85 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return $this->properties; |
91 | 91 | } |
92 | 92 | |
93 | - return array_filter($this->properties, function (PropertyInterface $property) use ($filterByPropertyClass) { |
|
93 | + return array_filter($this->properties, function(PropertyInterface $property) use ($filterByPropertyClass) { |
|
94 | 94 | return $property instanceof $filterByPropertyClass; |
95 | 95 | }); |
96 | 96 | } |