diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-10-28 10:19:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 10:19:41 +0100 |
commit | 5efb175665a71ac32fb6a6d5a141c72d12e8534c (patch) | |
tree | f27662fc76503cce1e1b0fc551db3b125396ecd7 /apps/dav | |
parent | 2eaa9f79b4fbc76b062d9f2bd1f5cfffb2143f57 (diff) | |
parent | 0de4843b73ee4779c7e455dd80c36a6b506e0024 (diff) | |
download | nextcloud-server-5efb175665a71ac32fb6a6d5a141c72d12e8534c.tar.gz nextcloud-server-5efb175665a71ac32fb6a6d5a141c72d12e8534c.zip |
Merge pull request #48614 from nextcloud/refactor/storage/constructors
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Storage/PublicOwnerWrapper.php | 8 | ||||
-rw-r--r-- | apps/dav/lib/Storage/PublicShareWrapper.php | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/dav/lib/Storage/PublicOwnerWrapper.php b/apps/dav/lib/Storage/PublicOwnerWrapper.php index 635ae04fe64..a0f1607d971 100644 --- a/apps/dav/lib/Storage/PublicOwnerWrapper.php +++ b/apps/dav/lib/Storage/PublicOwnerWrapper.php @@ -15,14 +15,14 @@ class PublicOwnerWrapper extends Wrapper { private string $owner; /** - * @param array $arguments ['storage' => $storage, 'owner' => $owner] + * @param array $parameters ['storage' => $storage, 'owner' => $owner] * * $storage: The storage the permissions mask should be applied on * $owner: The owner to use in case no owner is found */ - public function __construct($arguments) { - parent::__construct($arguments); - $this->owner = $arguments['owner']; + public function __construct(array $parameters) { + parent::__construct($parameters); + $this->owner = $parameters['owner']; } public function getOwner(string $path): string|false { diff --git a/apps/dav/lib/Storage/PublicShareWrapper.php b/apps/dav/lib/Storage/PublicShareWrapper.php index 058dbe2bcea..fb0db4dca4c 100644 --- a/apps/dav/lib/Storage/PublicShareWrapper.php +++ b/apps/dav/lib/Storage/PublicShareWrapper.php @@ -17,14 +17,14 @@ class PublicShareWrapper extends Wrapper implements ISharedStorage { private IShare $share; /** - * @param array $arguments ['storage' => $storage, 'share' => $share] + * @param array $parameters ['storage' => $storage, 'share' => $share] * * $storage: The storage the permissions mask should be applied on * $share: The share to use in case no share is found */ - public function __construct($arguments) { - parent::__construct($arguments); - $this->share = $arguments['share']; + public function __construct(array $parameters) { + parent::__construct($parameters); + $this->share = $parameters['share']; } public function getShare(): IShare { |