Skip to content

Commit

Permalink
Merge branch 'master' into update-module
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Apr 6, 2024
2 parents 7e148f3 + 4aa9fa9 commit d610405
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Livewire/Components/Modules/Maintenance/Cleaning.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,17 @@ public function getNoFileFoundProperty(): bool
return true;
}

$count = 0;
$files_found = false;
foreach (new \DirectoryIterator($this->path) as $fileInfo) {
if ($fileInfo->isDot()) {
continue;
}
if (in_array($fileInfo->getFilename(), $this->skip, true)) {
continue;
}
$count = 1;
$files_found = true;
}

return 0 === $count;
return $files_found === false;
}
}

0 comments on commit d610405

Please sign in to comment.