Cleaned the PHP code a little.

This commit is contained in:
The Wobbler 2024-10-27 14:52:33 +01:00
parent 77de8e47f2
commit 6886945575

View file

@ -2,7 +2,7 @@
function scanAllDir($dir) { function scanAllDir($dir) {
$result = []; $result = [];
foreach(scandir($dir) as $filename) { foreach(scandir($dir) as $filename) {
if ($filename[0] === '.') continue; if ($filename[0] == '.') continue;
$filePath = $dir . '/' . $filename; $filePath = $dir . '/' . $filename;
if (is_dir($filePath)) { if (is_dir($filePath)) {
foreach (scanAllDir($filePath) as $childFilename) { foreach (scanAllDir($filePath) as $childFilename) {