File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments