Преглед изворни кода

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

Some psalm OfflineUser fixes
tags/v22.0.0beta1
kesselb пре 3 година
родитељ
комит
a33803a31b
No account linked to committer's email address
1 измењених фајлова са 8 додато и 8 уклоњено
  1. 8
    8
      apps/user_ldap/lib/User/OfflineUser.php

+ 8
- 8
apps/user_ldap/lib/User/OfflineUser.php Прегледај датотеку

* @return string * @return string
*/ */
public function getUID() { public function getUID() {
if (!isset($this->uid)) {
if ($this->uid === null) {
$this->fetchDetails(); $this->fetchDetails();
} }
return $this->uid; return $this->uid;
* @return string * @return string
*/ */
public function getDN() { public function getDN() {
if (!isset($this->dn)) {
if ($this->dn === null) {
$this->fetchDetails(); $this->fetchDetails();
} }
return $this->dn; return $this->dn;
* @return string * @return string
*/ */
public function getDisplayName() { public function getDisplayName() {
if (!isset($this->displayName)) {
if ($this->displayName === null) {
$this->fetchDetails(); $this->fetchDetails();
} }
return $this->displayName; return $this->displayName;
* @return string * @return string
*/ */
public function getEmail() { public function getEmail() {
if (!isset($this->email)) {
if ($this->email === null) {
$this->fetchDetails(); $this->fetchDetails();
} }
return $this->email; return $this->email;
* @return string * @return string
*/ */
public function getHomePath() { public function getHomePath() {
if (!isset($this->homePath)) {
if ($this->homePath === null) {
$this->fetchDetails(); $this->fetchDetails();
} }
return $this->homePath; return $this->homePath;
* @return int * @return int
*/ */
public function getLastLogin() { public function getLastLogin() {
if (!isset($this->lastLogin)) {
if ($this->lastLogin === null) {
$this->fetchDetails(); $this->fetchDetails();
} }
return (int)$this->lastLogin; return (int)$this->lastLogin;
* @return int * @return int
*/ */
public function getDetectedOn() { public function getDetectedOn() {
if (!isset($this->foundDeleted)) {
if ($this->foundDeleted === null) {
$this->fetchDetails(); $this->fetchDetails();
} }
return (int)$this->foundDeleted; return (int)$this->foundDeleted;
* @return bool * @return bool
*/ */
public function getHasActiveShares() { public function getHasActiveShares() {
if (!isset($this->hasActiveShares)) {
if ($this->hasActiveShares === null) {
$this->fetchDetails(); $this->fetchDetails();
} }
return $this->hasActiveShares; return $this->hasActiveShares;

Loading…
Откажи
Сачувај