Skip to content

Commit 8728279

Browse files
committed
[CLEANUP] Avoid Hungarian notation for offset
Part of #756
1 parent 2be1044 commit 8728279

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Parsing/ParserState.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,15 @@ public function comes($sString, $bCaseInsensitive = false): bool
252252

253253
/**
254254
* @param int $length
255-
* @param int $iOffset
255+
* @param int $offset
256256
*/
257-
public function peek($length = 1, $iOffset = 0): string
257+
public function peek($length = 1, $offset = 0): string
258258
{
259-
$iOffset += $this->currentPosition;
260-
if ($iOffset >= $this->length) {
259+
$offset += $this->currentPosition;
260+
if ($offset >= $this->length) {
261261
return '';
262262
}
263-
return $this->substr($iOffset, $length);
263+
return $this->substr($offset, $length);
264264
}
265265

266266
/**
@@ -492,16 +492,16 @@ private function strsplit($sString)
492492
/**
493493
* @param string $sString
494494
* @param string $sNeedle
495-
* @param int $iOffset
495+
* @param int $offset
496496
*
497497
* @return int|false
498498
*/
499-
private function strpos($sString, $sNeedle, $iOffset)
499+
private function strpos($sString, $sNeedle, $offset)
500500
{
501501
if ($this->parserSettings->bMultibyteSupport) {
502-
return \mb_strpos($sString, $sNeedle, $iOffset, $this->charset);
502+
return \mb_strpos($sString, $sNeedle, $offset, $this->charset);
503503
} else {
504-
return \strpos($sString, $sNeedle, $iOffset);
504+
return \strpos($sString, $sNeedle, $offset);
505505
}
506506
}
507507
}

0 commit comments

Comments
 (0)