diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-08-14 15:10:48 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-08-14 15:10:48 +0200 |
commit | 6f8147b18fadd749b6060ab540292c9ac6f85d61 (patch) | |
tree | dd05f489acc4d859078473a6b60d34f305fc68c4 /apps/accessibility | |
parent | b13aa660c91873437afec36ef6466ef609b7959c (diff) | |
download | nextcloud-server-6f8147b18fadd749b6060ab540292c9ac6f85d61.tar.gz nextcloud-server-6f8147b18fadd749b6060ab540292c9ac6f85d61.zip |
Fix some MissingDocblockType or InvalidDocblock warnings.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/accessibility')
-rw-r--r-- | apps/accessibility/lib/Controller/ConfigController.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/accessibility/lib/Controller/ConfigController.php b/apps/accessibility/lib/Controller/ConfigController.php index 65173ccacea..d2eb9fc707d 100644 --- a/apps/accessibility/lib/Controller/ConfigController.php +++ b/apps/accessibility/lib/Controller/ConfigController.php @@ -37,6 +37,7 @@ use OCP\AppFramework\OCSController; use OCP\IConfig; use OCP\IRequest; use OCP\IUserSession; +use OCP\PreConditionNotMetException; class ConfigController extends OCSController { @@ -103,7 +104,7 @@ class ConfigController extends OCSController { * * @param string $key theme or font * @return DataResponse - * @throws Exception + * @throws OCSBadRequestException|PreConditionNotMetException */ public function setConfig(string $key, $value): DataResponse { if ($key === 'theme' || $key === 'font' || $key === 'highcontrast') { @@ -137,7 +138,7 @@ class ConfigController extends OCSController { * * @param string $key theme or font * @return DataResponse - * @throws Exception + * @throws OCSBadRequestException */ public function deleteConfig(string $key): DataResponse { if ($key === 'theme' || $key === 'font' || $key === 'highcontrast') { |