Code Duplication    Length = 11-12 lines in 2 locations

lib/private/Files/View.php 2 locations

@@ 866-877 (lines=12) @@
863
			try {
864
865
				$exists = $this->file_exists($path2);
866
				if ($this->shouldEmitHooks()) {
867
					\OC_Hook::emit(
868
						Filesystem::CLASSNAME,
869
						Filesystem::signal_copy,
870
						[
871
							Filesystem::signal_param_oldpath => $this->getHookPath($path1),
872
							Filesystem::signal_param_newpath => $this->getHookPath($path2),
873
							Filesystem::signal_param_run => &$run
874
						]
875
					);
876
					$this->emit_file_hooks_pre($exists, $path2, $run);
877
				}
878
				if ($run) {
879
					$mount1 = $this->getMount($path1);
880
					$mount2 = $this->getMount($path2);
@@ 904-914 (lines=11) @@
901
					$this->changeLock($path2, ILockingProvider::LOCK_SHARED);
902
					$lockTypePath2 = ILockingProvider::LOCK_SHARED;
903
904
					if ($this->shouldEmitHooks() && $result !== false) {
905
						\OC_Hook::emit(
906
							Filesystem::CLASSNAME,
907
							Filesystem::signal_post_copy,
908
							[
909
								Filesystem::signal_param_oldpath => $this->getHookPath($path1),
910
								Filesystem::signal_param_newpath => $this->getHookPath($path2)
911
							]
912
						);
913
						$this->emit_file_hooks_post($exists, $path2);
914
					}
915
916
				}
917
			} catch (\Exception $e) {