aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/SharedStorage.php
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-04-03 08:29:33 +0200
committerjld3103 <jld3103yt@gmail.com>2023-04-03 08:29:33 +0200
commitdcf6ebebaba199b310365d8b64438569e76ebd4b (patch)
treecacccd35ef45c0e223c1ea4f3ae1aec0574b3b5b /apps/files_sharing/lib/SharedStorage.php
parent7ef9ef3cb44f42f5945696766cba1f9f863a9f50 (diff)
downloadnextcloud-server-dcf6ebebaba199b310365d8b64438569e76ebd4b.tar.gz
nextcloud-server-dcf6ebebaba199b310365d8b64438569e76ebd4b.zip
Fix inherited parameter names
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps/files_sharing/lib/SharedStorage.php')
-rw-r--r--apps/files_sharing/lib/SharedStorage.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php
index 2c1ddf9af4a..5243c8d1594 100644
--- a/apps/files_sharing/lib/SharedStorage.php
+++ b/apps/files_sharing/lib/SharedStorage.php
@@ -224,17 +224,17 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
/**
* Get the permissions granted for a shared file
*
- * @param string $target Shared target file path
+ * @param string $path Shared target file path
* @return int CRUDS permissions granted
*/
- public function getPermissions($target = ''): int {
+ public function getPermissions($path = ''): int {
if (!$this->isValid()) {
return 0;
}
- $permissions = parent::getPermissions($target) & $this->superShare->getPermissions();
+ $permissions = parent::getPermissions($path) & $this->superShare->getPermissions();
// part files and the mount point always have delete permissions
- if ($target === '' || pathinfo($target, PATHINFO_EXTENSION) === 'part') {
+ if ($path === '' || pathinfo($path, PATHINFO_EXTENSION) === 'part') {
$permissions |= \OCP\Constants::PERMISSION_DELETE;
}
@@ -517,9 +517,9 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
}
/**
- * @param bool $available
+ * @param bool $isAvailable
*/
- public function setAvailability($available) {
+ public function setAvailability($isAvailable) {
// shares do not participate in availability logic
}