mirror of
https://github.com/brufdev/many-notes.git
synced 2026-02-05 17:58:38 -06:00
Refactor code
This commit is contained in:
@@ -36,7 +36,7 @@ class ProcessImportedVault
|
||||
// Create vault nodes with valid zip files and folders
|
||||
$zip = new ZipArchive();
|
||||
$zip->open($filePath);
|
||||
for ($i = 0; $i < $zip->count(); $i++) {
|
||||
for ($i = 0, $zipCount = $zip->count(); $i < $zipCount; $i++) {
|
||||
$entryName = $zip->getNameIndex($i);
|
||||
|
||||
$isFile = substr($entryName, -1) !== '/';
|
||||
|
||||
Reference in New Issue
Block a user