diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-02 19:34:20 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-03 14:52:47 +0100 |
commit | 68ec18323d07e7293fd59c82d51300a6d9d68176 (patch) | |
tree | f8b2094b663d481dda920d1df8f9c852fa42ee36 /apps/files_external/lib | |
parent | 252d2d39583c7daf838a6a24d0f72660ed01c371 (diff) | |
download | nextcloud-server-68ec18323d07e7293fd59c82d51300a6d9d68176.tar.gz nextcloud-server-68ec18323d07e7293fd59c82d51300a6d9d68176.zip |
Fix types in the Group Manager
Psalm found an issue. However the issue found was because of lying
docblocks. Fixed those and did some typing to make it all better.
For #25839
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r-- | apps/files_external/lib/Service/UserGlobalStoragesService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Service/UserGlobalStoragesService.php b/apps/files_external/lib/Service/UserGlobalStoragesService.php index b8ea137428f..fc284f951bd 100644 --- a/apps/files_external/lib/Service/UserGlobalStoragesService.php +++ b/apps/files_external/lib/Service/UserGlobalStoragesService.php @@ -76,7 +76,7 @@ class UserGlobalStoragesService extends GlobalStoragesService { $userMounts = $this->dbConfig->getAdminMountsFor(DBConfigService::APPLICABLE_TYPE_USER, $this->getUser()->getUID()); $globalMounts = $this->dbConfig->getAdminMountsFor(DBConfigService::APPLICABLE_TYPE_GLOBAL, null); $groups = $this->groupManager->getUserGroupIds($this->getUser()); - if (is_array($groups) && count($groups) !== 0) { + if (count($groups) !== 0) { $groupMounts = $this->dbConfig->getAdminMountsForMultiple(DBConfigService::APPLICABLE_TYPE_GROUP, $groups); } else { $groupMounts = []; |