From ffb52d973ee94638b9036a2685a6df7ed7f9a98b Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 6 Jul 2023 13:33:32 +0200 Subject: [PATCH] fix(LDAP): add return type hint and description Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/User/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php index 1c6efa77dc8a0..46a99c6b8d322 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -695,9 +695,9 @@ public function updateAvatarPostLogin($params) { /** * @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($force = false): bool { if (!$force && $this->wasRefreshed('avatar')) { return false; }