Code Duplication    Length = 4-6 lines in 2 locations

lib/private/legacy/files.php 2 locations

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