Code Duplication    Length = 8-8 lines in 2 locations

apps/files_sharing/lib/sharedstorage.php 2 locations

@@ 418-425 (lines=8) @@
415
		return $this->sourceStorage;
416
	}
417
418
	public function file_get_contents($path) {
419
		$info = [
420
			'target' => $this->getMountPoint() . '/' . $path,
421
			'source' => $this->getSourcePath($path),
422
		];
423
		\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_get_contents', $info);
424
		return parent::file_get_contents($path);
425
	}
426
427
	public function file_put_contents($path, $data) {
428
		$info = [
@@ 427-434 (lines=8) @@
424
		return parent::file_get_contents($path);
425
	}
426
427
	public function file_put_contents($path, $data) {
428
		$info = [
429
			'target' => $this->getMountPoint() . '/' . $path,
430
			'source' => $this->getSourcePath($path),
431
		];
432
		\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_put_contents', $info);
433
		return parent::file_put_contents($path, $data);
434
	}
435
436
}
437