Code Duplication    Length = 11-12 lines in 2 locations

lib/private/files/view.php 2 locations

@@ 772-783 (lines=12) @@
769
			try {
770
771
				$exists = $this->file_exists($path2);
772
				if ($this->shouldEmitHooks()) {
773
					\OC_Hook::emit(
774
						Filesystem::CLASSNAME,
775
						Filesystem::signal_copy,
776
						array(
777
							Filesystem::signal_param_oldpath => $this->getHookPath($path1),
778
							Filesystem::signal_param_newpath => $this->getHookPath($path2),
779
							Filesystem::signal_param_run => &$run
780
						)
781
					);
782
					$this->emit_file_hooks_pre($exists, $path2, $run);
783
				}
784
				if ($run) {
785
					$mount1 = $this->getMount($path1);
786
					$mount2 = $this->getMount($path2);
@@ 810-820 (lines=11) @@
807
					$this->changeLock($path2, ILockingProvider::LOCK_SHARED);
808
					$lockTypePath2 = ILockingProvider::LOCK_SHARED;
809
810
					if ($this->shouldEmitHooks() && $result !== false) {
811
						\OC_Hook::emit(
812
							Filesystem::CLASSNAME,
813
							Filesystem::signal_post_copy,
814
							array(
815
								Filesystem::signal_param_oldpath => $this->getHookPath($path1),
816
								Filesystem::signal_param_newpath => $this->getHookPath($path2)
817
							)
818
						);
819
						$this->emit_file_hooks_post($exists, $path2);
820
					}
821
822
				}
823
			} catch (\Exception $e) {