aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2024-09-16 10:04:37 +0200
committerGitHub <noreply@github.com>2024-09-16 10:04:37 +0200
commit0a7b4b597e6dc6824f5ccedfe40ca4fd86dea07d (patch)
treeb6843298d1f8478c16ce7a8e98c09b135491c133 /apps/user_ldap
parent54b162f10e436ad9a80c6fbf3ea97c50b5930826 (diff)
parentc57e684e7b22a02c7017450d1fdaaec9afc83d62 (diff)
downloadnextcloud-server-0a7b4b597e6dc6824f5ccedfe40ca4fd86dea07d.tar.gz
nextcloud-server-0a7b4b597e6dc6824f5ccedfe40ca4fd86dea07d.zip
Merge pull request #48042 from nextcloud/refactor/elvis
refactor: Use the elvis operator + fix: Handle null checks with the ?? operator
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/User/User.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php
index b500c72ca98..3423455e819 100644
--- a/apps/user_ldap/lib/User/User.php
+++ b/apps/user_ldap/lib/User/User.php
@@ -646,8 +646,7 @@ class User {
try {
$accountProperty = $account->getProperty($property);
$currentValue = $accountProperty->getValue();
- $scope = ($accountProperty->getScope() ? $accountProperty->getScope()
- : $defaultScopes[$property]);
+ $scope = ($accountProperty->getScope() ?: $defaultScopes[$property]);
} catch (PropertyDoesNotExistException $e) { // thrown at getProperty
$this->logger->error('property does not exist: '.$property
.' for uid='.$this->uid.'', ['app' => 'user_ldap', 'exception' => $e]);