Code Duplication    Length = 11-12 lines in 2 locations

lib/private/files/view.php 2 locations

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