summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-07-02 22:25:41 +0200
committerGitHub <noreply@github.com>2019-07-02 22:25:41 +0200
commit0d0850746ef37f378215d7605d91b8e8a2ec6d84 (patch)
treeba33d16c18009e30a5a320bb9fa54096cb5a6534 /apps/files/lib
parent63c64bf042b2b34450afc210a73ec7e6d2cbfa80 (diff)
parenta83b79c5f8ab20ed9b4d751167417a65fa3c42b8 (diff)
downloadnextcloud-server-0d0850746ef37f378215d7605d91b8e8a2ec6d84.tar.gz
nextcloud-server-0d0850746ef37f378215d7605d91b8e8a2ec6d84.zip
Merge pull request #15741 from mxss/fix/phpdoc-fixes
misc phpdoc fixes
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/BackgroundJob/CleanupFileLocks.php1
-rw-r--r--apps/files/lib/Controller/ApiController.php10
-rw-r--r--apps/files/lib/Controller/ViewController.php3
3 files changed, 12 insertions, 2 deletions
diff --git a/apps/files/lib/BackgroundJob/CleanupFileLocks.php b/apps/files/lib/BackgroundJob/CleanupFileLocks.php
index f4898b24873..df4542386e9 100644
--- a/apps/files/lib/BackgroundJob/CleanupFileLocks.php
+++ b/apps/files/lib/BackgroundJob/CleanupFileLocks.php
@@ -48,6 +48,7 @@ class CleanupFileLocks extends TimedJob {
* Makes the background job do its work
*
* @param array $argument unused argument
+ * @throws \Exception
*/
public function run($argument) {
$lockingProvider = \OC::$server->getLockingProvider();
diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php
index f9e4bcb5738..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);
@@ -295,10 +300,11 @@ class ApiController extends Controller {
*
* @NoAdminRequired
*
- * @param bool $show
- * @param bool $key the key of the folder
+ * @param int $show
+ * @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
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php
index 49f1818780b..1bcc3e4c7f9 100644
--- a/apps/files/lib/Controller/ViewController.php
+++ b/apps/files/lib/Controller/ViewController.php
@@ -136,6 +136,7 @@ class ViewController extends Controller {
*
* @param string $fileid
* @return TemplateResponse|RedirectResponse
+ * @throws NotFoundException
*/
public function showFile(string $fileid = null): Response {
// This is the entry point from the `/f/{fileid}` URL which is hardcoded in the server.
@@ -153,7 +154,9 @@ class ViewController extends Controller {
* @param string $dir
* @param string $view
* @param string $fileid
+ * @param bool $fileNotFound
* @return TemplateResponse|RedirectResponse
+ * @throws NotFoundException
*/
public function index($dir = '', $view = '', $fileid = null, $fileNotFound = false) {
if ($fileid !== null) {