diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-01-20 23:25:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 23:25:58 +0300 |
commit | c0b03000a507f7bdce57eb91deaf4e7d2d67a3b4 (patch) | |
tree | 86019acc692b5e207a2c2efa226620e611b0dfa1 /apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php | |
parent | 4466eb1f42c037ed3a71e4a0d549fbe7c7295703 (diff) | |
parent | 13b8179912630acede43aff844f2d302f552cb80 (diff) |
Merge pull request #30782 from nextcloud/backport/29349/stable23v23.0.1rc3
Diffstat (limited to 'apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php')
-rw-r--r-- | apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php b/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php index 03ec501b830..8c4eab2a60f 100644 --- a/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php +++ b/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php @@ -267,14 +267,14 @@ class NativeShare extends AbstractShare { * Open a writeable stream to a remote file * Note: This method will truncate the file to 0bytes first * - * @param string $source + * @param string $target * @return resource a writeable stream * * @throws NotFoundException * @throws InvalidTypeException */ - public function write(string $source) { - $url = $this->buildUrl($source); + public function write(string $target) { + $url = $this->buildUrl($target); $handle = $this->getState()->create($url); return NativeWriteStream::wrap($this->getState(), $handle, 'w', $url); } @@ -282,14 +282,14 @@ class NativeShare extends AbstractShare { /** * Open a writeable stream and set the cursor to the end of the stream * - * @param string $source + * @param string $target * @return resource a writeable stream * * @throws NotFoundException * @throws InvalidTypeException */ - public function append(string $source) { - $url = $this->buildUrl($source); + public function append(string $target) { + $url = $this->buildUrl($target); $handle = $this->getState()->open($url, "a+"); return NativeWriteStream::wrap($this->getState(), $handle, "a", $url); } |