@@ -22,7 +22,7 @@ class ParserState
22
22
/**
23
23
* @var Settings
24
24
*/
25
- private $ oParserSettings ;
25
+ private $ parserSettings ;
26
26
27
27
/**
28
28
* @var string
@@ -60,12 +60,12 @@ class ParserState
60
60
* @param string $sText 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 $ oParserSettings , $ lineNumber = 1 )
63
+ public function __construct ($ sText , Settings $ parserSettings , $ lineNumber = 1 )
64
64
{
65
- $ this ->oParserSettings = $ oParserSettings ;
65
+ $ this ->parserSettings = $ parserSettings ;
66
66
$ this ->sText = $ sText ;
67
67
$ this ->lineNumber = $ lineNumber ;
68
- $ this ->setCharset ($ this ->oParserSettings ->sDefaultCharset );
68
+ $ this ->setCharset ($ this ->parserSettings ->sDefaultCharset );
69
69
}
70
70
71
71
/**
@@ -113,7 +113,7 @@ public function currentColumn()
113
113
*/
114
114
public function getSettings ()
115
115
{
116
- return $ this ->oParserSettings ;
116
+ return $ this ->parserSettings ;
117
117
}
118
118
119
119
public function anchor (): Anchor
@@ -175,7 +175,7 @@ public function parseCharacter($bIsForIdentifier)
175
175
{
176
176
if ($ this ->peek () === '\\' ) {
177
177
if (
178
- $ bIsForIdentifier && $ this ->oParserSettings ->bLenientParsing
178
+ $ bIsForIdentifier && $ this ->parserSettings ->bLenientParsing
179
179
&& ($ this ->comes ('\\0 ' ) || $ this ->comes ('\\9 ' ))
180
180
) {
181
181
// Non-strings can contain \0 or \9 which is an IE hack supported in lenient parsing.
@@ -239,7 +239,7 @@ public function consumeWhiteSpace(): array
239
239
while (\preg_match ('/ \\s/isSu ' , $ this ->peek ()) === 1 ) {
240
240
$ this ->consume (1 );
241
241
}
242
- if ($ this ->oParserSettings ->bLenientParsing ) {
242
+ if ($ this ->parserSettings ->bLenientParsing ) {
243
243
try {
244
244
$ oComment = $ this ->consumeComment ();
245
245
} catch (UnexpectedEOFException $ e ) {
@@ -440,7 +440,7 @@ public function backtrack($iAmount): void
440
440
*/
441
441
public function strlen ($ sString ): int
442
442
{
443
- if ($ this ->oParserSettings ->bMultibyteSupport ) {
443
+ if ($ this ->parserSettings ->bMultibyteSupport ) {
444
444
return \mb_strlen ($ sString , $ this ->sCharset );
445
445
} else {
446
446
return \strlen ($ sString );
@@ -473,7 +473,7 @@ private function substr($iStart, $iLength): string
473
473
*/
474
474
private function strtolower ($ sString ): string
475
475
{
476
- if ($ this ->oParserSettings ->bMultibyteSupport ) {
476
+ if ($ this ->parserSettings ->bMultibyteSupport ) {
477
477
return \mb_strtolower ($ sString , $ this ->sCharset );
478
478
} else {
479
479
return \strtolower ($ sString );
@@ -487,7 +487,7 @@ private function strtolower($sString): string
487
487
*/
488
488
private function strsplit ($ sString )
489
489
{
490
- if ($ this ->oParserSettings ->bMultibyteSupport ) {
490
+ if ($ this ->parserSettings ->bMultibyteSupport ) {
491
491
if ($ this ->streql ($ this ->sCharset , 'utf-8 ' )) {
492
492
return \preg_split ('//u ' , $ sString , -1 , PREG_SPLIT_NO_EMPTY );
493
493
} else {
@@ -516,7 +516,7 @@ private function strsplit($sString)
516
516
*/
517
517
private function strpos ($ sString , $ sNeedle , $ iOffset )
518
518
{
519
- if ($ this ->oParserSettings ->bMultibyteSupport ) {
519
+ if ($ this ->parserSettings ->bMultibyteSupport ) {
520
520
return \mb_strpos ($ sString , $ sNeedle , $ iOffset , $ this ->sCharset );
521
521
} else {
522
522
return \strpos ($ sString , $ sNeedle , $ iOffset );
0 commit comments