Code Duplication    Length = 8-8 lines in 2 locations

apps/files_sharing/lib/sharedstorage.php 2 locations

@@ 410-417 (lines=8) @@
407
		return $this->sourceStorage;
408
	}
409
410
	public function file_get_contents($path) {
411
		$info = [
412
			'target' => $this->getMountPoint() . '/' . $path,
413
			'source' => $this->getSourcePath($path),
414
		];
415
		\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_get_contents', $info);
416
		return parent::file_get_contents($path);
417
	}
418
419
	public function file_put_contents($path, $data) {
420
		$info = [
@@ 419-426 (lines=8) @@
416
		return parent::file_get_contents($path);
417
	}
418
419
	public function file_put_contents($path, $data) {
420
		$info = [
421
			'target' => $this->getMountPoint() . '/' . $path,
422
			'source' => $this->getSourcePath($path),
423
		];
424
		\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_put_contents', $info);
425
		return parent::file_put_contents($path, $data);
426
	}
427
428
}
429