Cleaned the PHP code a little.
This commit is contained in:
parent
5461d6c44e
commit
039cbd83a6
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue