Skip to content

Commit 003331e

Browse files
Improve variable names
1 parent 9190630 commit 003331e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Factory.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@ private function globstar(string $pattern): array
127127
$patterns = [$rootPattern . $restPattern];
128128
$rootPattern .= '/*';
129129

130-
while ($dirs = glob($rootPattern, GLOB_ONLYDIR)) {
130+
while ($directories = glob($rootPattern, GLOB_ONLYDIR)) {
131131
$rootPattern .= '/*';
132132

133-
foreach ($dirs as $dir) {
134-
$patterns[] = $dir . $restPattern;
133+
foreach ($directories as $directory) {
134+
$patterns[] = $directory . $restPattern;
135135
}
136136
}
137137

138138
$files = [];
139139

140-
foreach ($patterns as $pat) {
141-
$files = array_merge($files, $this->globstar($pat));
140+
foreach ($patterns as $_pattern) {
141+
$files = array_merge($files, $this->globstar($_pattern));
142142
}
143143
}
144144

0 commit comments

Comments
 (0)