@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $update = false; |
141 | 141 | if (!isset($properties['URI'])) { // create a new contact |
142 | 142 | $uid = $this->createUid(); |
143 | - $uri = $uid . '.vcf'; |
|
143 | + $uri = $uid.'.vcf'; |
|
144 | 144 | $vCard = $this->createEmptyVCard($uid); |
145 | 145 | } else { // update existing contact |
146 | 146 | $uri = $properties['URI']; |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | protected function createUid() { |
235 | 235 | do { |
236 | 236 | $uid = $this->getUid(); |
237 | - $contact = $this->backend->getContact($this->getKey(), $uid . '.vcf'); |
|
237 | + $contact = $this->backend->getContact($this->getKey(), $uid.'.vcf'); |
|
238 | 238 | } while (!empty($contact)); |
239 | 239 | |
240 | 240 | return $uid; |
@@ -275,15 +275,15 @@ discard block |
||
275 | 275 | foreach ($vCard->children() as $property) { |
276 | 276 | if ($property->name === 'PHOTO' && in_array($property->getValueType(), ['BINARY', 'URI'])) { |
277 | 277 | $url = $this->urlGenerator->getAbsoluteURL( |
278 | - $this->urlGenerator->linkTo('', 'remote.php') . '/dav/'); |
|
278 | + $this->urlGenerator->linkTo('', 'remote.php').'/dav/'); |
|
279 | 279 | $url .= implode('/', [ |
280 | 280 | 'addressbooks', |
281 | 281 | substr($this->addressBookInfo['principaluri'], 11), //cut off 'principals/' |
282 | 282 | $this->addressBookInfo['uri'], |
283 | 283 | $uri |
284 | - ]) . '?photo'; |
|
284 | + ]).'?photo'; |
|
285 | 285 | |
286 | - $result['PHOTO'] = 'VALUE=uri:' . $url; |
|
286 | + $result['PHOTO'] = 'VALUE=uri:'.$url; |
|
287 | 287 | } elseif (in_array($property->name, ['URL', 'GEO', 'CLOUD', 'ADR', 'EMAIL', 'IMPP', 'TEL', 'X-SOCIALPROFILE', 'RELATED', 'LANG', 'X-ADDRESSBOOKSERVER-MEMBER'])) { |
288 | 288 | if (!isset($result[$property->name])) { |
289 | 289 | $result[$property->name] = []; |