|
@@ -108,12 +108,12 @@ |
|
|
block discarded – undo |
|
108
|
108
|
*/ |
|
109
|
109
|
private function validateTheme(string $themeId): ITheme { |
|
110
|
110
|
if ($themeId === '' || !$themeId) { |
|
111
|
|
- throw new OCSBadRequestException('Invalid theme id: ' . $themeId); |
|
|
111
|
+ throw new OCSBadRequestException('Invalid theme id: '.$themeId); |
|
112
|
112
|
} |
|
113
|
113
|
|
|
114
|
114
|
$themes = $this->themesService->getThemes(); |
|
115
|
115
|
if (!isset($themes[$themeId])) { |
|
116
|
|
- throw new OCSBadRequestException('Invalid theme id: ' . $themeId); |
|
|
116
|
+ throw new OCSBadRequestException('Invalid theme id: '.$themeId); |
|
117
|
117
|
} |
|
118
|
118
|
|
|
119
|
119
|
// If trying to toggle another theme but this is enforced |
Please login to merge, or discard this patch.