From fedf9c69d9c84fc0399badef39ed765de72c08f1 Mon Sep 17 00:00:00 2001 From: Morris Jobke <hey@morrisjobke.de> Date: Wed, 19 Aug 2020 17:54:00 +0200 Subject: Use matching parameter names form interfaces and implementations Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de> --- apps/files_sharing/lib/MountProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files_sharing/lib/MountProvider.php') diff --git a/apps/files_sharing/lib/MountProvider.php b/apps/files_sharing/lib/MountProvider.php index bbb9da3a775..402061c7905 100644 --- a/apps/files_sharing/lib/MountProvider.php +++ b/apps/files_sharing/lib/MountProvider.php @@ -71,10 +71,10 @@ class MountProvider implements IMountProvider { * Get all mountpoints applicable for the user and check for shares where we need to update the etags * * @param \OCP\IUser $user - * @param \OCP\Files\Storage\IStorageFactory $storageFactory + * @param \OCP\Files\Storage\IStorageFactory $loader * @return \OCP\Files\Mount\IMountPoint[] */ - public function getMountsForUser(IUser $user, IStorageFactory $storageFactory) { + public function getMountsForUser(IUser $user, IStorageFactory $loader) { $shares = $this->shareManager->getSharedWith($user->getUID(), IShare::TYPE_USER, null, -1); $shares = array_merge($shares, $this->shareManager->getSharedWith($user->getUID(), IShare::TYPE_GROUP, null, -1)); $shares = array_merge($shares, $this->shareManager->getSharedWith($user->getUID(), IShare::TYPE_CIRCLE, null, -1)); @@ -120,7 +120,7 @@ class MountProvider implements IMountProvider { 'ownerView' => $ownerViews[$owner], 'sharingDisabledForUser' => $sharingDisabledForUser ], - $storageFactory, + $loader, $view, $foldersExistCache ); -- cgit v1.2.3