Code Duplication    Length = 4-6 lines in 2 locations

lib/private/legacy/files.php 2 locations

@@ 473-478 (lines=6) @@
470
		if ($getType === self::FILE) {
471
			$view->unlockFile($filename, ILockingProvider::LOCK_SHARED);
472
		}
473
		if ($getType === self::ZIP_FILES) {
474
			foreach ($files as $file) {
475
				$file = $dir . '/' . $file;
476
				$view->unlockFile($file, ILockingProvider::LOCK_SHARED);
477
			}
478
		}
479
		if ($getType === self::ZIP_DIR) {
480
			$file = $dir . '/' . $files;
481
			$view->unlockFile($file, ILockingProvider::LOCK_SHARED);
@@ 479-482 (lines=4) @@
476
				$view->unlockFile($file, ILockingProvider::LOCK_SHARED);
477
			}
478
		}
479
		if ($getType === self::ZIP_DIR) {
480
			$file = $dir . '/' . $files;
481
			$view->unlockFile($file, ILockingProvider::LOCK_SHARED);
482
		}
483
	}
484
485
}