summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-02-15 13:36:02 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-02-15 13:36:02 +0100
commit3f4ece256eff8b6c6458d8fe99d10723c7dba926 (patch)
tree4c5f18116ff64e4c7b188cafbd995f5cd0442a46 /apps
parent9929adde0896e23600eec6279974f13ff46bf523 (diff)
downloadnextcloud-server-3f4ece256eff8b6c6458d8fe99d10723c7dba926.tar.gz
nextcloud-server-3f4ece256eff8b6c6458d8fe99d10723c7dba926.zip
Some psalm OfflineUser fixes
For #25641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/User/OfflineUser.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/user_ldap/lib/User/OfflineUser.php b/apps/user_ldap/lib/User/OfflineUser.php
index e55df4e8c1c..309eeec52c7 100644
--- a/apps/user_ldap/lib/User/OfflineUser.php
+++ b/apps/user_ldap/lib/User/OfflineUser.php
@@ -134,7 +134,7 @@ class OfflineUser {
* @return string
*/
public function getUID() {
- if (!isset($this->uid)) {
+ if ($this->uid === null) {
$this->fetchDetails();
}
return $this->uid;
@@ -145,7 +145,7 @@ class OfflineUser {
* @return string
*/
public function getDN() {
- if (!isset($this->dn)) {
+ if ($this->dn === null) {
$this->fetchDetails();
}
return $this->dn;
@@ -156,7 +156,7 @@ class OfflineUser {
* @return string
*/
public function getDisplayName() {
- if (!isset($this->displayName)) {
+ if ($this->displayName === null) {
$this->fetchDetails();
}
return $this->displayName;
@@ -167,7 +167,7 @@ class OfflineUser {
* @return string
*/
public function getEmail() {
- if (!isset($this->email)) {
+ if ($this->email === null) {
$this->fetchDetails();
}
return $this->email;
@@ -178,7 +178,7 @@ class OfflineUser {
* @return string
*/
public function getHomePath() {
- if (!isset($this->homePath)) {
+ if ($this->homePath === null) {
$this->fetchDetails();
}
return $this->homePath;
@@ -189,7 +189,7 @@ class OfflineUser {
* @return int
*/
public function getLastLogin() {
- if (!isset($this->lastLogin)) {
+ if ($this->lastLogin === null) {
$this->fetchDetails();
}
return (int)$this->lastLogin;
@@ -200,7 +200,7 @@ class OfflineUser {
* @return int
*/
public function getDetectedOn() {
- if (!isset($this->foundDeleted)) {
+ if ($this->foundDeleted === null) {
$this->fetchDetails();
}
return (int)$this->foundDeleted;
@@ -211,7 +211,7 @@ class OfflineUser {
* @return bool
*/
public function getHasActiveShares() {
- if (!isset($this->hasActiveShares)) {
+ if ($this->hasActiveShares === null) {
$this->fetchDetails();
}
return $this->hasActiveShares;