Skip to content

Commit 90854b4

Browse files
committed
Changes suggested in code review
1 parent beaa6b7 commit 90854b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Parsing/ParserState.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ParserState
3232
/**
3333
* @var array<int, string>
3434
*/
35-
private $texts;
35+
private $characters;
3636

3737
/**
3838
* @var int
@@ -76,9 +76,9 @@ public function __construct($text, Settings $parserSettings, $lineNumber = 1)
7676
public function setCharset($sCharset): void
7777
{
7878
$this->sCharset = $sCharset;
79-
$this->texts = $this->strsplit($this->text);
80-
if (\is_array($this->texts)) {
81-
$this->iLength = \count($this->texts);
79+
$this->characters = $this->strsplit($this->text);
80+
if (\is_array($this->characters)) {
81+
$this->iLength = \count($this->characters);
8282
}
8383
}
8484

@@ -451,7 +451,7 @@ private function substr($iStart, $iLength): string
451451
}
452452
$result = '';
453453
while ($iLength > 0) {
454-
$result .= $this->texts[$iStart];
454+
$result .= $this->characters[$iStart];
455455
$iStart++;
456456
$iLength--;
457457
}

0 commit comments

Comments
 (0)