diff options
author | Robin Appelman <robin@icewind.nl> | 2021-05-31 15:36:22 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-10-07 17:19:44 +0200 |
commit | b3766fc99bdef65d185f8a94071c50a96d313331 (patch) | |
tree | fc20fdb9371bda7d1ff8818c2484182af5523b2a /lib | |
parent | ace475619262a3dae8f17abd563b6bbdfd11cdfe (diff) | |
download | nextcloud-server-b3766fc99bdef65d185f8a94071c50a96d313331.tar.gz nextcloud-server-b3766fc99bdef65d185f8a94071c50a96d313331.zip |
make param names consistent with interface for copy directory polyfill
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/PolyFill/CopyDirectory.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/Files/Storage/PolyFill/CopyDirectory.php b/lib/private/Files/Storage/PolyFill/CopyDirectory.php index ff05eecb134..7fd418f6dca 100644 --- a/lib/private/Files/Storage/PolyFill/CopyDirectory.php +++ b/lib/private/Files/Storage/PolyFill/CopyDirectory.php @@ -64,15 +64,15 @@ trait CopyDirectory { */ abstract public function mkdir($path); - public function copy($source, $target) { - if ($this->is_dir($source)) { - if ($this->file_exists($target)) { - $this->unlink($target); + public function copy($path1, $path2) { + if ($this->is_dir($path1)) { + if ($this->file_exists($path2)) { + $this->unlink($path2); } - $this->mkdir($target); - return $this->copyRecursive($source, $target); + $this->mkdir($path2); + return $this->copyRecursive($path1, $path2); } else { - return parent::copy($source, $target); + return parent::copy($path1, $path2); } } |