Merge pull request #6992 from nextcloud/2-lines-for-better-code
Use ::class and fix missing doc
This commit is contained in:
commit
d18a60de39
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue