diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-06-25 11:22:08 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-06-25 11:22:08 +0200 |
commit | 06367d8b81407fc2948e0f666b38f4de2dffbd89 (patch) | |
tree | d5cfb74e70560f3abce5aeccf8994dcbe2829e24 /controller/foldercontroller.php | |
parent | 60c4dfbd9661b93bce14a6a429a3f23d19b5327c (diff) |
style fixes
Diffstat (limited to 'controller/foldercontroller.php')
-rw-r--r-- | controller/foldercontroller.php | 79 |
1 files changed, 46 insertions, 33 deletions
diff --git a/controller/foldercontroller.php b/controller/foldercontroller.php index 576fee422..9488a7d6c 100644 --- a/controller/foldercontroller.php +++ b/controller/foldercontroller.php @@ -57,26 +57,30 @@ class FolderController extends Controller { } - /** - * @NoAdminRequired - * - * @param int $folderId - * @param bool $open - */ + /** + * @NoAdminRequired + * + * @param int $folderId + * @param bool $open + * @return array|\OCP\AppFramework\Http\JSONResponse + */ public function open($folderId, $open) { try { $this->folderService->open($folderId, $open, $this->userId); } catch(ServiceNotFoundException $ex) { return $this->error($ex, Http::STATUS_NOT_FOUND); } + + return []; } - /** - * @NoAdminRequired - * - * @param string $folderName - */ + /** + * @NoAdminRequired + * + * @param string $folderName + * @return array|\OCP\AppFramework\Http\JSONResponse + */ public function create($folderName) { try { // we need to purge deleted folders if a folder is created to @@ -95,26 +99,30 @@ class FolderController extends Controller { } - /** - * @NoAdminRequired - * - * @param int $folderId - */ + /** + * @NoAdminRequired + * + * @param int $folderId + * @return array|\OCP\AppFramework\Http\JSONResponse + */ public function delete($folderId) { try { $this->folderService->markDeleted($folderId, $this->userId); } catch (ServiceNotFoundException $ex){ return $this->error($ex, Http::STATUS_NOT_FOUND); } + + return []; } - /** - * @NoAdminRequired - * - * @param string $folderName - * @param int $folderId - */ + /** + * @NoAdminRequired + * + * @param string $folderName + * @param int $folderId + * @return array|\OCP\AppFramework\Http\JSONResponse + */ public function rename($folderName, $folderId) { try { $folder = $this->folderService->rename($folderId, $folderName, @@ -129,14 +137,16 @@ class FolderController extends Controller { } catch (ServiceNotFoundException $ex){ return $this->error($ex, Http::STATUS_NOT_FOUND); } + } - /** - * @NoAdminRequired - * - * @param int $folderId - * @param int $highestItemId - */ + /** + * @NoAdminRequired + * + * @param int $folderId + * @param int $highestItemId + * @return array + */ public function read($folderId, $highestItemId) { $this->itemService->readFolder($folderId, $highestItemId, $this->userId); @@ -144,17 +154,20 @@ class FolderController extends Controller { } - /** - * @NoAdminRequired - * - * @param int $folderId - */ + /** + * @NoAdminRequired + * + * @param int $folderId + * @return array|\OCP\AppFramework\Http\JSONResponse + */ public function restore($folderId) { try { $this->folderService->unmarkDeleted($folderId, $this->userId); } catch (ServiceNotFoundException $ex){ return $this->error($ex, Http::STATUS_NOT_FOUND); } + + return []; } |