@@ -259,7 +259,7 @@ public function peek($length = 1, $offset = 0): string
259
259
public function consume ($ value = 1 ): string
260
260
{
261
261
if (\is_string ($ value )) {
262
- $ iLineCount = \substr_count ($ value , "\n" );
262
+ $ numberOfLines = \substr_count ($ value , "\n" );
263
263
$ length = $ this ->strlen ($ value );
264
264
if (!$ this ->streql ($ this ->substr ($ this ->currentPosition , $ length ), $ value )) {
265
265
throw new UnexpectedTokenException (
@@ -269,16 +269,16 @@ public function consume($value = 1): string
269
269
$ this ->lineNumber
270
270
);
271
271
}
272
- $ this ->lineNumber += $ iLineCount ;
272
+ $ this ->lineNumber += $ numberOfLines ;
273
273
$ this ->currentPosition += $ this ->strlen ($ value );
274
274
return $ value ;
275
275
} else {
276
276
if ($ this ->currentPosition + $ value > \count ($ this ->characters )) {
277
277
throw new UnexpectedEOFException ((string ) $ value , $ this ->peek (5 ), 'count ' , $ this ->lineNumber );
278
278
}
279
279
$ result = $ this ->substr ($ this ->currentPosition , $ value );
280
- $ iLineCount = \substr_count ($ result , "\n" );
281
- $ this ->lineNumber += $ iLineCount ;
280
+ $ numberOfLines = \substr_count ($ result , "\n" );
281
+ $ this ->lineNumber += $ numberOfLines ;
282
282
$ this ->currentPosition += $ value ;
283
283
return $ result ;
284
284
}
0 commit comments