@@ -27,12 +27,12 @@ class ParserState
27
27
/**
28
28
* @var string
29
29
*/
30
- private $ sText ;
30
+ private $ text ;
31
31
32
32
/**
33
33
* @var array<int, string>
34
34
*/
35
- private $ aText ;
35
+ private $ characters ;
36
36
37
37
/**
38
38
* @var int
@@ -57,13 +57,13 @@ class ParserState
57
57
private $ lineNumber ;
58
58
59
59
/**
60
- * @param string $sText the complete CSS as text (i.e., usually the contents of a CSS file)
60
+ * @param string $text the complete CSS as text (i.e., usually the contents of a CSS file)
61
61
* @param int<0, max> $lineNumber
62
62
*/
63
- public function __construct ($ sText , Settings $ parserSettings , $ lineNumber = 1 )
63
+ public function __construct ($ text , Settings $ parserSettings , $ lineNumber = 1 )
64
64
{
65
65
$ this ->parserSettings = $ parserSettings ;
66
- $ this ->sText = $ sText ;
66
+ $ this ->text = $ text ;
67
67
$ this ->lineNumber = $ lineNumber ;
68
68
$ this ->setCharset ($ this ->parserSettings ->sDefaultCharset );
69
69
}
@@ -76,9 +76,9 @@ public function __construct($sText, Settings $parserSettings, $lineNumber = 1)
76
76
public function setCharset ($ sCharset ): void
77
77
{
78
78
$ this ->sCharset = $ sCharset ;
79
- $ this ->aText = $ this ->strsplit ($ this ->sText );
80
- if (\is_array ($ this ->aText )) {
81
- $ this ->iLength = \count ($ this ->aText );
79
+ $ this ->characters = $ this ->strsplit ($ this ->text );
80
+ if (\is_array ($ this ->characters )) {
81
+ $ this ->iLength = \count ($ this ->characters );
82
82
}
83
83
}
84
84
@@ -451,7 +451,7 @@ private function substr($iStart, $iLength): string
451
451
}
452
452
$ result = '' ;
453
453
while ($ iLength > 0 ) {
454
- $ result .= $ this ->aText [$ iStart ];
454
+ $ result .= $ this ->characters [$ iStart ];
455
455
$ iStart ++;
456
456
$ iLength --;
457
457
}
0 commit comments