Code Duplication    Length = 2-2 lines in 2 locations

apps/dav/lib/HookManager.php 2 locations

@@ 207-208 (lines=2) @@
204
		if ($view->is_file($from)) {
205
			$info_from = $view->getFileInfo($from);
206
			$info_to = $view->getFileInfo($to);
207
			if ($view->file_exists('files_zsync/'.$info_from->getId()))
208
				$view->copy('files_zsync/'.$info_from->getId(), 'files_zsync/'.$info_to->getId());
209
		} else if ($view->is_dir($from)) {
210
		/* if a folder then iteratively copy all zsync metadata for all files in folder, including subdirs */
211
			$array[] = [$from, $to];
@@ 221-222 (lines=2) @@
218
					} else if ($view->is_file($from_current.'/'.$entry)) {
219
						$info_from = $view->getFileInfo($from_current.'/'.$entry);
220
						$info_to = $view->getFileInfo($to_current.'/'.$entry);
221
						if ($view->file_exists('files_zsync/'.$info_from->getId()))
222
							$view->copy('files_zsync/'.$info_from->getId(), 'files_zsync/'.$info_to->getId());
223
					}
224
				}
225
			}