Code Duplication    Length = 11-12 lines in 2 locations

lib/private/Files/View.php 2 locations

@@ 847-858 (lines=12) @@
844
			try {
845
846
				$exists = $this->file_exists($path2);
847
				if ($this->shouldEmitHooks()) {
848
					\OC_Hook::emit(
849
						Filesystem::CLASSNAME,
850
						Filesystem::signal_copy,
851
						array(
852
							Filesystem::signal_param_oldpath => $this->getHookPath($path1),
853
							Filesystem::signal_param_newpath => $this->getHookPath($path2),
854
							Filesystem::signal_param_run => &$run
855
						)
856
					);
857
					$this->emit_file_hooks_pre($exists, $path2, $run);
858
				}
859
				if ($run) {
860
					$mount1 = $this->getMount($path1);
861
					$mount2 = $this->getMount($path2);
@@ 885-895 (lines=11) @@
882
					$this->changeLock($path2, ILockingProvider::LOCK_SHARED);
883
					$lockTypePath2 = ILockingProvider::LOCK_SHARED;
884
885
					if ($this->shouldEmitHooks() && $result !== false) {
886
						\OC_Hook::emit(
887
							Filesystem::CLASSNAME,
888
							Filesystem::signal_post_copy,
889
							array(
890
								Filesystem::signal_param_oldpath => $this->getHookPath($path1),
891
								Filesystem::signal_param_newpath => $this->getHookPath($path2)
892
							)
893
						);
894
						$this->emit_file_hooks_post($exists, $path2);
895
					}
896
897
				}
898
			} catch (\Exception $e) {