diff options
author | Hamid Dehnavi <hamid.dev.pro@gmail.com> | 2023-07-07 13:50:21 +0330 |
---|---|---|
committer | Hamid Dehnavi <hamid.dev.pro@gmail.com> | 2023-09-28 12:18:41 +0330 |
commit | d64bbc8bd3a6a272dd5c550916a6b80222f19e13 (patch) | |
tree | 1b56193c101e936e79478448c41af9b1f87521f5 /apps/federation/lib/SyncFederationAddressBooks.php | |
parent | 456aea80420d7d4fc8dc853d9953687ed3f89ace (diff) | |
download | nextcloud-server-d64bbc8bd3a6a272dd5c550916a6b80222f19e13.tar.gz nextcloud-server-d64bbc8bd3a6a272dd5c550916a6b80222f19e13.zip |
Convert isset ternary to null coalescing operator
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Diffstat (limited to 'apps/federation/lib/SyncFederationAddressBooks.php')
-rw-r--r-- | apps/federation/lib/SyncFederationAddressBooks.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federation/lib/SyncFederationAddressBooks.php b/apps/federation/lib/SyncFederationAddressBooks.php index 3c3c8c872c7..e718e1638de 100644 --- a/apps/federation/lib/SyncFederationAddressBooks.php +++ b/apps/federation/lib/SyncFederationAddressBooks.php @@ -60,7 +60,7 @@ class SyncFederationAddressBooks { $syncToken = $trustedServer['sync_token']; $endPoints = $this->ocsDiscoveryService->discover($url, 'FEDERATED_SHARING'); - $cardDavUser = isset($endPoints['carddav-user']) ? $endPoints['carddav-user'] : 'system'; + $cardDavUser = $endPoints['carddav-user'] ?? 'system'; $addressBookUrl = isset($endPoints['system-address-book']) ? trim($endPoints['system-address-book'], '/') : 'remote.php/dav/addressbooks/system/system/system'; if (is_null($sharedSecret)) { |