From 00ac153ef78a6c3294629e44da5db9a164d6e29f 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 cc80ac7a875..da6cae39034 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; } -- 2.39.5