diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-17 17:45:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 17:45:11 +0200 |
commit | 00cb8e6c54d8f2a26c5770fef5fe4ae1e366d0ce (patch) | |
tree | ab84089689092f01793719f43594d3585b0219a7 /apps/files_external | |
parent | f6daf17fa773bd4b9c9aae070e39dfbefe8de935 (diff) | |
parent | 3e7b815da469edf7d8be7fda86debde66aef1aa9 (diff) | |
download | nextcloud-server-00cb8e6c54d8f2a26c5770fef5fe4ae1e366d0ce.tar.gz nextcloud-server-00cb8e6c54d8f2a26c5770fef5fe4ae1e366d0ce.zip |
Merge pull request #22253 from nextcloud/debt/noid/docblocks
Fix some MissingDocblockType or InvalidDocblock warnings.
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> |