From 381077028adf388a7081cf42026570c6be47b198 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Fri, 18 Oct 2024 12:04:22 +0200 Subject: refactor(apps): Use constructor property promotion when possible Signed-off-by: provokateurin --- apps/files/lib/Controller/ApiController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/files/lib/Controller/ApiController.php') diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php index 118a4fcb9e2..5ba325f1bf8 100644 --- a/apps/files/lib/Controller/ApiController.php +++ b/apps/files/lib/Controller/ApiController.php @@ -38,6 +38,7 @@ use OCP\IPreview; use OCP\IRequest; use OCP\IUser; use OCP\IUserSession; +use OCP\PreConditionNotMetException; use OCP\Share\IManager; use OCP\Share\IShare; use Psr\Log\LoggerInterface; @@ -384,7 +385,7 @@ class ApiController extends Controller { * * @param bool $value * @return Response - * @throws \OCP\PreConditionNotMetException + * @throws PreConditionNotMetException */ #[NoAdminRequired] public function showHiddenFiles(bool $value): Response { @@ -397,7 +398,7 @@ class ApiController extends Controller { * * @param bool $value * @return Response - * @throws \OCP\PreConditionNotMetException + * @throws PreConditionNotMetException */ #[NoAdminRequired] public function cropImagePreviews(bool $value): Response { @@ -410,7 +411,7 @@ class ApiController extends Controller { * * @param bool $show * @return Response - * @throws \OCP\PreConditionNotMetException + * @throws PreConditionNotMetException */ #[NoAdminRequired] public function showGridView(bool $show): Response { -- cgit v1.2.3