diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-08-14 16:10:48 +0300 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-08-14 16:10:48 +0300 |
commit | 6f8147b18fadd749b6060ab540292c9ac6f85d61 (patch) | |
tree | dd05f489acc4d859078473a6b60d34f305fc68c4 /apps/files_external | |
parent | b13aa660c91873437afec36ef6466ef609b7959c (diff) |
Fix some MissingDocblockType or InvalidDocblock warnings.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/Command/ListCommand.php | 6 | ||||
-rw-r--r-- | apps/files_external/lib/Service/UserTrait.php | 2 | ||||
-rw-r--r-- | apps/files_external/templates/list.php | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/apps/files_external/lib/Command/ListCommand.php b/apps/files_external/lib/Command/ListCommand.php index 279e581f95e..42c4cddb171 100644 --- a/apps/files_external/lib/Command/ListCommand.php +++ b/apps/files_external/lib/Command/ListCommand.php @@ -97,15 +97,13 @@ class ListCommand extends Base { } protected function execute(InputInterface $input, OutputInterface $output): int { + /** @var StorageConfig[] $mounts */ if ($input->getOption('all')) { - /** @var $mounts StorageConfig[] */ $mounts = $this->globalService->getStorageForAllUsers(); $userId = self::ALL; } else { $userId = $input->getArgument('user_id'); $storageService = $this->getStorageService($userId); - - /** @var $mounts StorageConfig[] */ $mounts = $storageService->getAllStorages(); } @@ -114,7 +112,7 @@ class ListCommand extends Base { } /** - * @param $userId $userId + * @param string $userId * @param StorageConfig[] $mounts * @param InputInterface $input * @param OutputInterface $output diff --git a/apps/files_external/lib/Service/UserTrait.php b/apps/files_external/lib/Service/UserTrait.php index 192bb6e02bd..aa00bf623c1 100644 --- a/apps/files_external/lib/Service/UserTrait.php +++ b/apps/files_external/lib/Service/UserTrait.php @@ -55,7 +55,7 @@ trait UserTrait { * Override the user from the session * Unset with ->resetUser() when finished! * - * @param IUser + * @param IUser $user * @return self */ public function setUser(IUser $user) { diff --git a/apps/files_external/templates/list.php b/apps/files_external/templates/list.php index e1b666c14c1..1d4f6993168 100644 --- a/apps/files_external/templates/list.php +++ b/apps/files_external/templates/list.php @@ -1,4 +1,4 @@ -<?php /** @var $l \OCP\IL10N */ ?> +<?php /** @var \OCP\IL10N $l */ ?> <div id="controls"> <div id="file_action_panel"></div> </div> |