fix(LDAP): add return type hint and description

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2023-07-06 13:33:32 +02:00
parent 92a082d823
commit 4054a7ddc8
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -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;
}