diff options
Diffstat (limited to 'apps/files/lib/Controller/ApiController.php')
-rw-r--r-- | apps/files/lib/Controller/ApiController.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php index b0965d255bd..38c378d480d 100644 --- a/apps/files/lib/Controller/ApiController.php +++ b/apps/files/lib/Controller/ApiController.php @@ -242,6 +242,7 @@ class ApiController extends Controller { * @param string $mode * @param string $direction * @return Response + * @throws \OCP\PreConditionNotMetException */ public function updateFileSorting($mode, $direction) { $allowedMode = ['name', 'size', 'mtime']; @@ -262,6 +263,8 @@ class ApiController extends Controller { * @NoAdminRequired * * @param bool $show + * @return Response + * @throws \OCP\PreConditionNotMetException */ public function showHiddenFiles($show) { $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', (int)$show); @@ -274,6 +277,8 @@ class ApiController extends Controller { * @NoAdminRequired * * @param bool $show + * @return Response + * @throws \OCP\PreConditionNotMetException */ public function showGridView($show) { $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', 'show_grid', (int)$show); @@ -299,6 +304,7 @@ class ApiController extends Controller { * @param string $key the key of the folder * * @return Response + * @throws \OCP\PreConditionNotMetException */ public function toggleShowFolder(int $show, string $key) { // ensure the edited key exists |