diff options
author | Marc Hefter <marchefter@gmail.com> | 2023-04-24 10:21:45 +0200 |
---|---|---|
committer | Marc Hefter <marchefter@gmail.com> | 2023-04-24 10:21:45 +0200 |
commit | 621c6c3c56453360599190cbbf248a5e5ad23500 (patch) | |
tree | 9f8aaa0b70bbd3ea55f931d9875bb31a75834ac3 /apps | |
parent | aa210365ec5e3d16b1275c1895d1a56780aeafaf (diff) | |
download | nextcloud-server-621c6c3c56453360599190cbbf248a5e5ad23500.tar.gz nextcloud-server-621c6c3c56453360599190cbbf248a5e5ad23500.zip |
code styling
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Marc Hefter <marchefter@march42.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/User/User.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php index c79c2b76f41..f85e4206eff 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -286,31 +286,31 @@ class User { $attr = strtolower($this->connection->ldapAttributeTwitter); if (!empty($attr)) { $profileValues[\OCP\Accounts\IAccountManager::PROPERTY_TWITTER] - = (isset($ldapEntry[$attr]) ? $ldapEntry[$attr][0] : ""); + = $ldapEntry[$attr][0] ?? ""; } //User Profile Field - fediverse $attr = strtolower($this->connection->ldapAttributeFediverse); if (!empty($attr)) { $profileValues[\OCP\Accounts\IAccountManager::PROPERTY_FEDIVERSE] - = (isset($ldapEntry[$attr]) ? $ldapEntry[$attr][0] : ""); + = $ldapEntry[$attr][0] ?? ""; } //User Profile Field - organisation $attr = strtolower($this->connection->ldapAttributeOrganisation); if (!empty($attr)) { $profileValues[\OCP\Accounts\IAccountManager::PROPERTY_ORGANISATION] - = (isset($ldapEntry[$attr]) ? $ldapEntry[$attr][0] : ""); + = $ldapEntry[$attr][0] ?? ""; } //User Profile Field - role $attr = strtolower($this->connection->ldapAttributeRole); if (!empty($attr)) { $profileValues[\OCP\Accounts\IAccountManager::PROPERTY_ROLE] - = (isset($ldapEntry[$attr]) ? $ldapEntry[$attr][0] : ""); + = $ldapEntry[$attr][0] ?? ""; } //User Profile Field - headline $attr = strtolower($this->connection->ldapAttributeHeadline); if (!empty($attr)) { $profileValues[\OCP\Accounts\IAccountManager::PROPERTY_HEADLINE] - = (isset($ldapEntry[$attr]) ? $ldapEntry[$attr][0] : ""); + = $ldapEntry[$attr][0] ?? ""; } //User Profile Field - biography $attr = strtolower($this->connection->ldapAttributeBiography); |