diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-10-30 16:18:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-30 16:18:28 +0100 |
commit | d18a60de3902236505aaa0e289c01cd1c6deb594 (patch) | |
tree | eba4ab81931f4733d04ae36afb653494a9c786d1 | |
parent | 42a14ad4cdac768a5c246b76cfb099b7d5b275db (diff) | |
parent | 94f3fc63bc059423234cf135bee409e061320bda (diff) | |
download | nextcloud-server-d18a60de3902236505aaa0e289c01cd1c6deb594.tar.gz nextcloud-server-d18a60de3902236505aaa0e289c01cd1c6deb594.zip |
Merge pull request #6992 from nextcloud/2-lines-for-better-code
Use ::class and fix missing doc
-rw-r--r-- | lib/private/Files/Storage/Local.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 0577093712e..c9cb6f246d7 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -408,10 +408,11 @@ class Local extends \OC\Files\Storage\Common { * @param IStorage $sourceStorage * @param string $sourceInternalPath * @param string $targetInternalPath + * @param bool $preserveMtime * @return bool */ public function copyFromStorage(IStorage $sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime = false) { - if ($sourceStorage->instanceOfStorage('\OC\Files\Storage\Local')) { + if ($sourceStorage->instanceOfStorage(Local::class)) { if ($sourceStorage->instanceOfStorage(Jail::class)) { /** * @var \OC\Files\Storage\Wrapper\Jail $sourceStorage |