Merge pull request #6992 from nextcloud/2-lines-for-better-code

Use ::class and fix missing doc
This commit is contained in:
Morris Jobke 2017-10-30 16:18:28 +01:00 committed by GitHub
commit d18a60de39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -408,10 +408,11 @@ class Local extends \OC\Files\Storage\Common {
* @param IStorage $sourceStorage * @param IStorage $sourceStorage
* @param string $sourceInternalPath * @param string $sourceInternalPath
* @param string $targetInternalPath * @param string $targetInternalPath
* @param bool $preserveMtime
* @return bool * @return bool
*/ */
public function copyFromStorage(IStorage $sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime = false) { 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)) { if ($sourceStorage->instanceOfStorage(Jail::class)) {
/** /**
* @var \OC\Files\Storage\Wrapper\Jail $sourceStorage * @var \OC\Files\Storage\Wrapper\Jail $sourceStorage