Code Duplication    Length = 11-12 lines in 2 locations

lib/private/Files/View.php 2 locations

@@ 902-913 (lines=12) @@
899
			try {
900
901
				$exists = $this->file_exists($path2);
902
				if ($this->shouldEmitHooks()) {
903
					\OC_Hook::emit(
904
						Filesystem::CLASSNAME,
905
						Filesystem::signal_copy,
906
						array(
907
							Filesystem::signal_param_oldpath => $this->getHookPath($path1),
908
							Filesystem::signal_param_newpath => $this->getHookPath($path2),
909
							Filesystem::signal_param_run => &$run
910
						)
911
					);
912
					$this->emit_file_hooks_pre($exists, $path2, $run);
913
				}
914
				if ($run) {
915
					$mount1 = $this->getMount($path1);
916
					$mount2 = $this->getMount($path2);
@@ 940-950 (lines=11) @@
937
					$this->changeLock($path2, ILockingProvider::LOCK_SHARED);
938
					$lockTypePath2 = ILockingProvider::LOCK_SHARED;
939
940
					if ($this->shouldEmitHooks() && $result !== false) {
941
						\OC_Hook::emit(
942
							Filesystem::CLASSNAME,
943
							Filesystem::signal_post_copy,
944
							array(
945
								Filesystem::signal_param_oldpath => $this->getHookPath($path1),
946
								Filesystem::signal_param_newpath => $this->getHookPath($path2)
947
							)
948
						);
949
						$this->emit_file_hooks_post($exists, $path2);
950
					}
951
952
				}
953
			} catch (\Exception $e) {