Skip to content

Commit a3e4b93

Browse files
authored
[CLEANUP] Avoid Hungarian notation in ParserState (#980)
Part of #756
1 parent e725c2e commit a3e4b93

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Parsing/ParserState.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,11 @@ public function streql($string1, $string2, $caseInsensitive = true): bool
404404
}
405405

406406
/**
407-
* @param int $iAmount
407+
* @param int $numberOfCharacters
408408
*/
409-
public function backtrack($iAmount): void
409+
public function backtrack($numberOfCharacters): void
410410
{
411-
$this->currentPosition -= $iAmount;
411+
$this->currentPosition -= $numberOfCharacters;
412412
}
413413

414414
/**
@@ -490,18 +490,18 @@ private function strsplit($string)
490490
}
491491

492492
/**
493-
* @param string $string
494-
* @param string $sNeedle
493+
* @param string $haystack
494+
* @param string $needle
495495
* @param int $offset
496496
*
497497
* @return int|false
498498
*/
499-
private function strpos($string, $sNeedle, $offset)
499+
private function strpos($haystack, $needle, $offset)
500500
{
501501
if ($this->parserSettings->bMultibyteSupport) {
502-
return \mb_strpos($string, $sNeedle, $offset, $this->charset);
502+
return \mb_strpos($haystack, $needle, $offset, $this->charset);
503503
} else {
504-
return \strpos($string, $sNeedle, $offset);
504+
return \strpos($haystack, $needle, $offset);
505505
}
506506
}
507507
}

0 commit comments

Comments
 (0)