@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | if ($ex->getCode() === Http::STATUS_UNAUTHORIZED) { |
98 | 98 | // remote server revoked access to the address book, remove it |
99 | 99 | $this->backend->deleteAddressBook($addressBookId); |
100 | - $this->logger->info('Authorization failed, remove address book: ' . $url, ['app' => 'dav']); |
|
100 | + $this->logger->info('Authorization failed, remove address book: '.$url, ['app' => 'dav']); |
|
101 | 101 | throw $ex; |
102 | 102 | } |
103 | 103 | } |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | */ |
171 | 171 | protected function getClient($url, $userName, $sharedSecret) { |
172 | 172 | $settings = [ |
173 | - 'baseUri' => $url . '/', |
|
173 | + 'baseUri' => $url.'/', |
|
174 | 174 | 'userName' => $userName, |
175 | 175 | 'password' => $sharedSecret, |
176 | 176 | ]; |
@@ -265,8 +265,8 @@ discard block |
||
265 | 265 | $systemAddressBook = $this->getLocalSystemAddressBook(); |
266 | 266 | $addressBookId = $systemAddressBook['id']; |
267 | 267 | $converter = new Converter($this->accountManager); |
268 | - if(!$user instanceof IUser) { |
|
269 | - \OC::$server->getLogger()->logException(new \Exception('IUser expected, got ' . getType($user))); |
|
268 | + if (!$user instanceof IUser) { |
|
269 | + \OC::$server->getLogger()->logException(new \Exception('IUser expected, got '.getType($user))); |
|
270 | 270 | } |
271 | 271 | $name = $user->getBackendClassName(); |
272 | 272 | $userId = $user->getUID(); |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | */ |
294 | 294 | public function deleteUser($userOrCardId) { |
295 | 295 | $systemAddressBook = $this->getLocalSystemAddressBook(); |
296 | - if ($userOrCardId instanceof IUser){ |
|
296 | + if ($userOrCardId instanceof IUser) { |
|
297 | 297 | $name = $userOrCardId->getBackendClassName(); |
298 | 298 | $userId = $userOrCardId->getUID(); |
299 | 299 | |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | if (is_null($this->localSystemAddressBook)) { |
310 | 310 | $systemPrincipal = "principals/system/system"; |
311 | 311 | $this->localSystemAddressBook = $this->ensureSystemAddressBookExists($systemPrincipal, 'system', [ |
312 | - '{' . Plugin::NS_CARDDAV . '}addressbook-description' => 'System addressbook which holds all users of this instance' |
|
312 | + '{'.Plugin::NS_CARDDAV.'}addressbook-description' => 'System addressbook which holds all users of this instance' |
|
313 | 313 | ]); |
314 | 314 | } |
315 | 315 | |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | |
328 | 328 | // remove no longer existing |
329 | 329 | $allCards = $this->backend->getCards($systemAddressBook['id']); |
330 | - foreach($allCards as $card) { |
|
330 | + foreach ($allCards as $card) { |
|
331 | 331 | $vCard = Reader::read($card['carddata']); |
332 | 332 | $uid = $vCard->UID->getValue(); |
333 | 333 | // load backend and see if user exists |