diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2024-08-23 15:10:27 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2024-08-25 19:34:58 +0200 |
commit | af6de04e9e141466dc229e444ff3f146f4a34765 (patch) | |
tree | 7b93f521865cdecdadb33637dea33bea242e7969 /lib/private/User | |
parent | 1cc6b3577fdbeadece7e4e6478e7f7755555b41a (diff) | |
download | nextcloud-server-af6de04e9e141466dc229e444ff3f146f4a34765.tar.gz nextcloud-server-af6de04e9e141466dc229e444ff3f146f4a34765.zip |
style: update codestyle for coding-standard 1.2.3
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/User')
-rw-r--r-- | lib/private/User/Database.php | 2 | ||||
-rw-r--r-- | lib/private/User/Manager.php | 6 | ||||
-rw-r--r-- | lib/private/User/User.php | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php index bd6aa7ba2c2..a80cc39a732 100644 --- a/lib/private/User/Database.php +++ b/lib/private/User/Database.php @@ -108,7 +108,7 @@ class Database extends ABackend implements // Repopulate the cache $this->loadUser($uid); - return (bool) $result; + return (bool)$result; }, $this->dbConn); } diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php index 2c8cc10dc15..96be58a84a2 100644 --- a/lib/private/User/Manager.php +++ b/lib/private/User/Manager.php @@ -455,7 +455,7 @@ class Manager extends PublicEmitter implements IUserManager { * returns how many users per backend exist (if supported by backend) * * @param boolean $hasLoggedIn when true only users that have a lastLogin - * entry in the preferences table will be affected + * entry in the preferences table will be affected * @return array<string, int> an array of backend class as key and count number as value */ public function countUsers() { @@ -486,7 +486,7 @@ class Manager extends PublicEmitter implements IUserManager { * * @param IGroup[] $groups an array of gid to search in * @return array|int an array of backend class as key and count number as value - * if $hasLoggedIn is true only an int is returned + * if $hasLoggedIn is true only an int is returned */ public function countUsersOfGroups(array $groups) { $users = []; @@ -506,7 +506,7 @@ class Manager extends PublicEmitter implements IUserManager { * @psalm-param \Closure(\OCP\IUser):?bool $callback * @param string $search * @param boolean $onlySeen when true only users that have a lastLogin entry - * in the preferences table will be affected + * in the preferences table will be affected * @since 9.0.0 */ public function callForAllUsers(\Closure $callback, $search = '', $onlySeen = false) { diff --git a/lib/private/User/User.php b/lib/private/User/User.php index 6495b5cf276..6f7ceb08532 100644 --- a/lib/private/User/User.php +++ b/lib/private/User/User.php @@ -216,9 +216,9 @@ class User implements IUser { */ public function getLastLogin() { if ($this->lastLogin === null) { - $this->lastLogin = (int) $this->config->getUserValue($this->uid, 'login', 'lastLogin', 0); + $this->lastLogin = (int)$this->config->getUserValue($this->uid, 'login', 'lastLogin', 0); } - return (int) $this->lastLogin; + return (int)$this->lastLogin; } /** |