Code Duplication    Length = 8-8 lines in 2 locations

apps/files_sharing/lib/sharedstorage.php 2 locations

@@ 427-434 (lines=8) @@
424
		return $this->storage;
425
	}
426
427
	public function file_get_contents($path) {
428
		$info = [
429
			'target' => $this->getMountPoint() . '/' . $path,
430
			'source' => $this->getSourcePath($path),
431
		];
432
		\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_get_contents', $info);
433
		return parent::file_get_contents($path);
434
	}
435
436
	public function file_put_contents($path, $data) {
437
		$info = [
@@ 436-443 (lines=8) @@
433
		return parent::file_get_contents($path);
434
	}
435
436
	public function file_put_contents($path, $data) {
437
		$info = [
438
			'target' => $this->getMountPoint() . '/' . $path,
439
			'source' => $this->getSourcePath($path),
440
		];
441
		\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_put_contents', $info);
442
		return parent::file_put_contents($path, $data);
443
	}
444
445
}
446