Code Duplication    Length = 8-8 lines in 2 locations

apps/files_sharing/lib/sharedstorage.php 2 locations

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