@@ -60,7 +60,7 @@ public static function parse(ParserState $oParserState, $oList = null)
6060 do {
6161 $ aSelectorParts [] = $ oParserState ->consume (1 )
6262 . $ oParserState ->consumeUntil (['{ ' , '} ' , '\'' , '" ' ], false , false , $ aComments );
63- if (\in_array ($ oParserState ->peek (), ['\'' , '" ' ], true ) && \substr (\end ($ aSelectorParts ), -1 ) != "\\" ) {
63+ if (\in_array ($ oParserState ->peek (), ['\'' , '" ' ], true ) && \substr (\end ($ aSelectorParts ), -1 ) != '\\' ) {
6464 if ($ sStringWrapperChar === false ) {
6565 $ sStringWrapperChar = $ oParserState ->peek ();
6666 } elseif ($ sStringWrapperChar == $ oParserState ->peek ()) {
@@ -107,7 +107,7 @@ public function setSelectors($mSelector, $oList = null): void
107107 throw new UnexpectedTokenException (
108108 "Selector did not match ' " . Selector::SELECTOR_VALIDATION_RX . "'. " ,
109109 $ mSelector ,
110- " custom "
110+ ' custom '
111111 );
112112 }
113113 $ this ->aSelectors [$ iKey ] = new Selector ($ mSelector );
@@ -116,7 +116,7 @@ public function setSelectors($mSelector, $oList = null): void
116116 throw new UnexpectedTokenException (
117117 "Selector did not match ' " . KeyframeSelector::SELECTOR_VALIDATION_RX . "'. " ,
118118 $ mSelector ,
119- " custom "
119+ ' custom '
120120 );
121121 }
122122 $ this ->aSelectors [$ iKey ] = new KeyframeSelector ($ mSelector );
@@ -225,14 +225,14 @@ public function expandBorderShorthand(): void
225225 $ mNewValue = $ mValue ;
226226 }
227227 if ($ mValue instanceof Size) {
228- $ sNewRuleName = $ sBorderRule . " -width " ;
228+ $ sNewRuleName = $ sBorderRule . ' -width ' ;
229229 } elseif ($ mValue instanceof Color) {
230- $ sNewRuleName = $ sBorderRule . " -color " ;
230+ $ sNewRuleName = $ sBorderRule . ' -color ' ;
231231 } else {
232232 if (\in_array ($ mValue , $ aBorderSizes , true )) {
233- $ sNewRuleName = $ sBorderRule . " -width " ;
233+ $ sNewRuleName = $ sBorderRule . ' -width ' ;
234234 } else {
235- $ sNewRuleName = $ sBorderRule . " -style " ;
235+ $ sNewRuleName = $ sBorderRule . ' -style ' ;
236236 }
237237 }
238238 $ oNewRule = new Rule ($ sNewRuleName , $ oRule ->getLineNo (), $ oRule ->getColNo ());
@@ -789,7 +789,7 @@ public function render(OutputFormat $oOutputFormat): string
789789 $ sResult = $ oOutputFormat ->comments ($ this );
790790 if (\count ($ this ->aSelectors ) === 0 ) {
791791 // If all the selectors have been removed, this declaration block becomes invalid
792- throw new OutputException (" Attempt to print declaration block with missing selector " , $ this ->iLineNo );
792+ throw new OutputException (' Attempt to print declaration block with missing selector ' , $ this ->iLineNo );
793793 }
794794 $ sResult .= $ oOutputFormat ->sBeforeDeclarationBlock ;
795795 $ sResult .= $ oOutputFormat ->implode (
0 commit comments