Skip to content

Commit

Permalink
fix(LDAP): add return type hint and description
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Jul 6, 2023
1 parent 92a082d commit ffb52d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/user_ldap/lib/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ffb52d9

Please sign in to comment.