@@ -233,15 +233,15 @@ public function consumeWhiteSpace(): array
233233 }
234234
235235 /**
236- * @param string $sString
236+ * @param string $string
237237 * @param bool $caseInsensitive
238238 */
239- public function comes ($ sString , $ caseInsensitive = false ): bool
239+ public function comes ($ string , $ caseInsensitive = false ): bool
240240 {
241- $ sPeek = $ this ->peek (\strlen ($ sString ));
241+ $ sPeek = $ this ->peek (\strlen ($ string ));
242242 return ($ sPeek == '' )
243243 ? false
244- : $ this ->streql ($ sPeek , $ sString , $ caseInsensitive );
244+ : $ this ->streql ($ sPeek , $ string , $ caseInsensitive );
245245 }
246246
247247 /**
@@ -390,16 +390,16 @@ private function inputLeft(): string
390390 }
391391
392392 /**
393- * @param string $sString1
394- * @param string $sString2
393+ * @param string $string1
394+ * @param string $string2
395395 * @param bool $caseInsensitive
396396 */
397- public function streql ($ sString1 , $ sString2 , $ caseInsensitive = true ): bool
397+ public function streql ($ string1 , $ string2 , $ caseInsensitive = true ): bool
398398 {
399399 if ($ caseInsensitive ) {
400- return $ this ->strtolower ($ sString1 ) === $ this ->strtolower ($ sString2 );
400+ return $ this ->strtolower ($ string1 ) === $ this ->strtolower ($ string2 );
401401 } else {
402- return $ sString1 === $ sString2 ;
402+ return $ string1 === $ string2 ;
403403 }
404404 }
405405
@@ -412,14 +412,14 @@ public function backtrack($iAmount): void
412412 }
413413
414414 /**
415- * @param string $sString
415+ * @param string $string
416416 */
417- public function strlen ($ sString ): int
417+ public function strlen ($ string ): int
418418 {
419419 if ($ this ->parserSettings ->bMultibyteSupport ) {
420- return \mb_strlen ($ sString , $ this ->charset );
420+ return \mb_strlen ($ string , $ this ->charset );
421421 } else {
422- return \strlen ($ sString );
422+ return \strlen ($ string );
423423 }
424424 }
425425
@@ -445,63 +445,63 @@ private function substr($iStart, $length): string
445445 }
446446
447447 /**
448- * @param string $sString
448+ * @param string $string
449449 */
450- private function strtolower ($ sString ): string
450+ private function strtolower ($ string ): string
451451 {
452452 if ($ this ->parserSettings ->bMultibyteSupport ) {
453- return \mb_strtolower ($ sString , $ this ->charset );
453+ return \mb_strtolower ($ string , $ this ->charset );
454454 } else {
455- return \strtolower ($ sString );
455+ return \strtolower ($ string );
456456 }
457457 }
458458
459459 /**
460- * @param string $sString
460+ * @param string $string
461461 *
462462 * @return array<int, string>
463463 *
464464 * @throws SourceException if the charset is UTF-8 and the string contains invalid byte sequences
465465 */
466- private function strsplit ($ sString )
466+ private function strsplit ($ string )
467467 {
468468 if ($ this ->parserSettings ->bMultibyteSupport ) {
469469 if ($ this ->streql ($ this ->charset , 'utf-8 ' )) {
470- $ result = \preg_split ('//u ' , $ sString , -1 , PREG_SPLIT_NO_EMPTY );
470+ $ result = \preg_split ('//u ' , $ string , -1 , PREG_SPLIT_NO_EMPTY );
471471 if (!\is_array ($ result )) {
472472 throw new SourceException ('`preg_split` failed with error ' . \preg_last_error ());
473473 }
474474 return $ result ;
475475 } else {
476- $ length = \mb_strlen ($ sString , $ this ->charset );
476+ $ length = \mb_strlen ($ string , $ this ->charset );
477477 $ result = [];
478478 for ($ i = 0 ; $ i < $ length ; ++$ i ) {
479- $ result [] = \mb_substr ($ sString , $ i , 1 , $ this ->charset );
479+ $ result [] = \mb_substr ($ string , $ i , 1 , $ this ->charset );
480480 }
481481 return $ result ;
482482 }
483483 } else {
484- if ($ sString === '' ) {
484+ if ($ string === '' ) {
485485 return [];
486486 } else {
487- return \str_split ($ sString );
487+ return \str_split ($ string );
488488 }
489489 }
490490 }
491491
492492 /**
493- * @param string $sString
493+ * @param string $string
494494 * @param string $sNeedle
495495 * @param int $offset
496496 *
497497 * @return int|false
498498 */
499- private function strpos ($ sString , $ sNeedle , $ offset )
499+ private function strpos ($ string , $ sNeedle , $ offset )
500500 {
501501 if ($ this ->parserSettings ->bMultibyteSupport ) {
502- return \mb_strpos ($ sString , $ sNeedle , $ offset , $ this ->charset );
502+ return \mb_strpos ($ string , $ sNeedle , $ offset , $ this ->charset );
503503 } else {
504- return \strpos ($ sString , $ sNeedle , $ offset );
504+ return \strpos ($ string , $ sNeedle , $ offset );
505505 }
506506 }
507507}
0 commit comments