Code Duplication    Length = 4-6 lines in 2 locations

lib/private/legacy/files.php 2 locations

@@ 346-351 (lines=6) @@
343
		if ($getType === self::FILE) {
344
			$view->unlockFile($filename, ILockingProvider::LOCK_SHARED);
345
		}
346
		if ($getType === self::ZIP_FILES) {
347
			foreach ($files as $file) {
348
				$file = $dir . '/' . $file;
349
				$view->unlockFile($file, ILockingProvider::LOCK_SHARED);
350
			}
351
		}
352
		if ($getType === self::ZIP_DIR) {
353
			$file = $dir . '/' . $files;
354
			$view->unlockFile($file, ILockingProvider::LOCK_SHARED);
@@ 352-355 (lines=4) @@
349
				$view->unlockFile($file, ILockingProvider::LOCK_SHARED);
350
			}
351
		}
352
		if ($getType === self::ZIP_DIR) {
353
			$file = $dir . '/' . $files;
354
			$view->unlockFile($file, ILockingProvider::LOCK_SHARED);
355
		}
356
	}
357
}
358