aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-07-06 13:33:32 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-07-07 10:46:00 +0200
commit4054a7ddc8c29ae1cfb71507f7145257a0b08152 (patch)
tree3c08f37b5ab246855f0b2341bc363f44cacec202 /apps/user_ldap/lib
parent92a082d82364e86b43beed5911e22e65a3f0883f (diff)
downloadnextcloud-server-4054a7ddc8c29ae1cfb71507f7145257a0b08152.tar.gz
nextcloud-server-4054a7ddc8c29ae1cfb71507f7145257a0b08152.zip
fix(LDAP): add return type hint and description
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r--apps/user_ldap/lib/User/User.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php
index 1c6efa77dc8..0de30a18899 100644
--- a/apps/user_ldap/lib/User/User.php
+++ b/apps/user_ldap/lib/User/User.php
@@ -695,9 +695,9 @@ class User {
/**
* @brief attempts to get an image from LDAP and sets it as Nextcloud avatar
- * @return bool
+ * @return bool true when the avatar was set successfully or is up to date
*/
- public function updateAvatar($force = false) {
+ public function updateAvatar(bool $force = false): bool {
if (!$force && $this->wasRefreshed('avatar')) {
return false;
}