Skip to content

Commit f1242ee

Browse files
Update FileHandler.php
1 parent 27f56f7 commit f1242ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/Cache/Handlers/FileHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,13 @@ protected function getDirFileInfo(string $sourceDir, bool $topLevelOnly = true,
337337
$relativePath = $sourceDir;
338338

339339
if ($fp = @opendir($sourceDir)) {
340-
// reset the array and make sure $source_dir has a trailing slash on the initial call
340+
// reset the array and make sure $sourceDir has a trailing slash on the initial call
341341
if ($_recursion === false) {
342342
$_filedata = [];
343343
$sourceDir = rtrim(realpath($sourceDir) ?: $sourceDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
344344
}
345345

346-
// Used to be foreach (scandir($source_dir, 1) as $file), but scandir() is simply not as fast
346+
// Used to be foreach (scandir($sourceDir, 1) as $file), but scandir() is simply not as fast
347347
while (false !== ($file = readdir($fp))) {
348348
if (is_dir($sourceDir . $file) && $file[0] !== '.' && $topLevelOnly === false) {
349349
$this->getDirFileInfo($sourceDir . $file . DIRECTORY_SEPARATOR, $topLevelOnly, true);

0 commit comments

Comments
 (0)