Code Duplication    Length = 8-8 lines in 2 locations

apps/files_sharing/lib/SharedStorage.php 2 locations

@@ 438-445 (lines=8) @@
435
		return $this->sourceStorage;
436
	}
437
438
	public function file_get_contents($path) {
439
		$info = [
440
			'target' => $this->getMountPoint() . '/' . $path,
441
			'source' => $this->getSourcePath($path),
442
		];
443
		\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_get_contents', $info);
444
		return parent::file_get_contents($path);
445
	}
446
447
	public function file_put_contents($path, $data) {
448
		$info = [
@@ 447-454 (lines=8) @@
444
		return parent::file_get_contents($path);
445
	}
446
447
	public function file_put_contents($path, $data) {
448
		$info = [
449
			'target' => $this->getMountPoint() . '/' . $path,
450
			'source' => $this->getSourcePath($path),
451
		];
452
		\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_put_contents', $info);
453
		return parent::file_put_contents($path, $data);
454
	}
455
456
	public function getWrapperStorage() {
457
		$this->init();