File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -349,27 +349,27 @@ public function consumeUntil(
349
349
array &$ comments = []
350
350
): string {
351
351
$ stopCharacters = \is_array ($ stopCharacters ) ? $ stopCharacters : [$ stopCharacters ];
352
- $ out = '' ;
352
+ $ consumedCharacters = '' ;
353
353
$ start = $ this ->currentPosition ;
354
354
355
355
while (!$ this ->isEnd ()) {
356
- $ char = $ this ->consume (1 );
357
- if (\in_array ($ char , $ stopCharacters , true )) {
356
+ $ character = $ this ->consume (1 );
357
+ if (\in_array ($ character , $ stopCharacters , true )) {
358
358
if ($ bIncludeEnd ) {
359
- $ out .= $ char ;
359
+ $ consumedCharacters .= $ character ;
360
360
} elseif (!$ consumeEnd ) {
361
- $ this ->currentPosition -= $ this ->strlen ($ char );
361
+ $ this ->currentPosition -= $ this ->strlen ($ character );
362
362
}
363
- return $ out ;
363
+ return $ consumedCharacters ;
364
364
}
365
- $ out .= $ char ;
365
+ $ consumedCharacters .= $ character ;
366
366
if ($ comment = $ this ->consumeComment ()) {
367
367
$ comments [] = $ comment ;
368
368
}
369
369
}
370
370
371
371
if (\in_array (self ::EOF , $ stopCharacters , true )) {
372
- return $ out ;
372
+ return $ consumedCharacters ;
373
373
}
374
374
375
375
$ this ->currentPosition = $ start ;
You can’t perform that action at this time.
0 commit comments