瀏覽代碼

Merge pull request #25653 from nextcloud/fix/psalm/offlineuser

Some psalm OfflineUser fixes
tags/v22.0.0beta1
kesselb 3 年之前
父節點
當前提交
a33803a31b
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 8 行新增8 行删除
  1. 8
    8
      apps/user_ldap/lib/User/OfflineUser.php

+ 8
- 8
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;

Loading…
取消
儲存