File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed
Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -150,18 +150,6 @@ parameters:
150150 count : 1
151151 path : ../src/Rule/Rule.php
152152
153- -
154- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
155- identifier : method.notFound
156- count : 1
157- path : ../src/RuleSet/AtRuleSet.php
158-
159- -
160- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceBeforeOpeningBrace\(\)\.$#'
161- identifier : method.notFound
162- count : 1
163- path : ../src/RuleSet/AtRuleSet.php
164-
165153 -
166154 message : ' #^Only booleans are allowed in an if condition, string given\.$#'
167155 identifier : if.condNotBoolean
Original file line number Diff line number Diff line change @@ -63,12 +63,13 @@ public function __toString(): string
6363
6464 public function render (OutputFormat $ outputFormat ): string
6565 {
66- $ result = $ outputFormat ->comments ($ this );
66+ $ formatter = $ outputFormat ->getFormatter ();
67+ $ result = $ formatter ->comments ($ this );
6768 $ arguments = $ this ->arguments ;
6869 if ($ arguments ) {
6970 $ arguments = ' ' . $ arguments ;
7071 }
71- $ result .= "@ {$ this ->type }$ arguments {$ outputFormat ->spaceBeforeOpeningBrace ()}{ " ;
72+ $ result .= "@ {$ this ->type }$ arguments {$ formatter ->spaceBeforeOpeningBrace ()}{ " ;
7273 $ result .= $ this ->renderRules ($ outputFormat );
7374 $ result .= '} ' ;
7475 return $ result ;
You can’t perform that action at this time.
0 commit comments