aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Service/ThemesService.php
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-04-21 13:55:32 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-04-21 19:00:29 +0200
commitd1dfdfe7998a3c77a22ebba01be90747744c8ac9 (patch)
treea032d289f15094cc92dd86b86b5ae3646d2fd429 /apps/theming/lib/Service/ThemesService.php
parent3c75a9926716484020544046f03bfad1c6712cfe (diff)
downloadnextcloud-server-d1dfdfe7998a3c77a22ebba01be90747744c8ac9.tar.gz
nextcloud-server-d1dfdfe7998a3c77a22ebba01be90747744c8ac9.zip
Lint and psalm fix
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/lib/Service/ThemesService.php')
-rw-r--r--apps/theming/lib/Service/ThemesService.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/theming/lib/Service/ThemesService.php b/apps/theming/lib/Service/ThemesService.php
index d8101c5b48a..c2e9e2b24bf 100644
--- a/apps/theming/lib/Service/ThemesService.php
+++ b/apps/theming/lib/Service/ThemesService.php
@@ -94,9 +94,10 @@ class ThemesService {
});
// Retrieve IDs only
+ /** @var string[] */
$filteredThemesIds = array_map(function(ITheme $t) {
return $t->getId();
- }, $filteredThemes);
+ }, array_values($filteredThemes));
$enabledThemes = [...array_diff($themesIds, $filteredThemesIds), $theme->getId()];
$this->setEnabledThemes($enabledThemes);
@@ -136,6 +137,7 @@ class ThemesService {
$themes = $this->getEnabledThemes();
return in_array($theme->getId(), $themes);
}
+ return false;
}
/**