Code Duplication    Length = 11-12 lines in 2 locations

lib/private/Files/View.php 2 locations

@@ 872-883 (lines=12) @@
869
			try {
870
871
				$exists = $this->file_exists($path2);
872
				if ($this->shouldEmitHooks()) {
873
					\OC_Hook::emit(
874
						Filesystem::CLASSNAME,
875
						Filesystem::signal_copy,
876
						array(
877
							Filesystem::signal_param_oldpath => $this->getHookPath($path1),
878
							Filesystem::signal_param_newpath => $this->getHookPath($path2),
879
							Filesystem::signal_param_run => &$run
880
						)
881
					);
882
					$this->emit_file_hooks_pre($exists, $path2, $run);
883
				}
884
				if ($run) {
885
					$mount1 = $this->getMount($path1);
886
					$mount2 = $this->getMount($path2);
@@ 910-920 (lines=11) @@
907
					$this->changeLock($path2, ILockingProvider::LOCK_SHARED);
908
					$lockTypePath2 = ILockingProvider::LOCK_SHARED;
909
910
					if ($this->shouldEmitHooks() && $result !== false) {
911
						\OC_Hook::emit(
912
							Filesystem::CLASSNAME,
913
							Filesystem::signal_post_copy,
914
							array(
915
								Filesystem::signal_param_oldpath => $this->getHookPath($path1),
916
								Filesystem::signal_param_newpath => $this->getHookPath($path2)
917
							)
918
						);
919
						$this->emit_file_hooks_post($exists, $path2);
920
					}
921
922
				}
923
			} catch (\Exception $e) {