mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(LDAP): add return type hint and description
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
92a082d823
commit
4054a7ddc8
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue