@@ -62,37 +62,37 @@ public function __construct($lineNumber = 0)
6262 * @throws UnexpectedTokenException
6363 * @throws SourceException
6464 */
65- public static function parseList (ParserState $ parserState , CSSList $ oList ): void
65+ public static function parseList (ParserState $ parserState , CSSList $ list ): void
6666 {
67- $ bIsRoot = $ oList instanceof Document;
67+ $ bIsRoot = $ list instanceof Document;
6868 if (\is_string ($ parserState )) {
6969 $ parserState = new ParserState ($ parserState , Settings::create ());
7070 }
7171 $ bLenientParsing = $ parserState ->getSettings ()->bLenientParsing ;
7272 $ comments = [];
7373 while (!$ parserState ->isEnd ()) {
7474 $ comments = \array_merge ($ comments , $ parserState ->consumeWhiteSpace ());
75- $ oListItem = null ;
75+ $ listItem = null ;
7676 if ($ bLenientParsing ) {
7777 try {
78- $ oListItem = self ::parseListItem ($ parserState , $ oList );
78+ $ listItem = self ::parseListItem ($ parserState , $ list );
7979 } catch (UnexpectedTokenException $ e ) {
80- $ oListItem = false ;
80+ $ listItem = false ;
8181 }
8282 } else {
83- $ oListItem = self ::parseListItem ($ parserState , $ oList );
83+ $ listItem = self ::parseListItem ($ parserState , $ list );
8484 }
85- if ($ oListItem === null ) {
85+ if ($ listItem === null ) {
8686 // List parsing finished
8787 return ;
8888 }
89- if ($ oListItem ) {
90- $ oListItem ->addComments ($ comments );
91- $ oList ->append ($ oListItem );
89+ if ($ listItem ) {
90+ $ listItem ->addComments ($ comments );
91+ $ list ->append ($ listItem );
9292 }
9393 $ comments = $ parserState ->consumeWhiteSpace ();
9494 }
95- $ oList ->addComments ($ comments );
95+ $ list ->addComments ($ comments );
9696 if (!$ bIsRoot && !$ bLenientParsing ) {
9797 throw new SourceException ('Unexpected end of document ' , $ parserState ->currentLine ());
9898 }
@@ -105,9 +105,9 @@ public static function parseList(ParserState $parserState, CSSList $oList): void
105105 * @throws UnexpectedEOFException
106106 * @throws UnexpectedTokenException
107107 */
108- private static function parseListItem (ParserState $ parserState , CSSList $ oList )
108+ private static function parseListItem (ParserState $ parserState , CSSList $ list )
109109 {
110- $ bIsRoot = $ oList instanceof Document;
110+ $ bIsRoot = $ list instanceof Document;
111111 if ($ parserState ->comes ('@ ' )) {
112112 $ oAtRule = self ::parseAtRule ($ parserState );
113113 if ($ oAtRule instanceof Charset) {
@@ -119,7 +119,7 @@ private static function parseListItem(ParserState $parserState, CSSList $oList)
119119 $ parserState ->currentLine ()
120120 );
121121 }
122- if (\count ($ oList ->getContents ()) > 0 ) {
122+ if (\count ($ list ->getContents ()) > 0 ) {
123123 throw new UnexpectedTokenException (
124124 '@charset must be the first parseable token in a document ' ,
125125 '' ,
@@ -142,7 +142,7 @@ private static function parseListItem(ParserState $parserState, CSSList $oList)
142142 return null ;
143143 }
144144 } else {
145- return DeclarationBlock::parse ($ parserState , $ oList );
145+ return DeclarationBlock::parse ($ parserState , $ list );
146146 }
147147 }
148148
0 commit comments