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 @@ -126,18 +126,6 @@ parameters:
126
126
count : 1
127
127
path : ../src/Rule/Rule.php
128
128
129
- -
130
- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
131
- identifier : method.notFound
132
- count : 1
133
- path : ../src/RuleSet/AtRuleSet.php
134
-
135
- -
136
- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceBeforeOpeningBrace\(\)\.$#'
137
- identifier : method.notFound
138
- count : 1
139
- path : ../src/RuleSet/AtRuleSet.php
140
-
141
129
-
142
130
message : ' #^Only booleans are allowed in an if condition, string given\.$#'
143
131
identifier : if.condNotBoolean
Original file line number Diff line number Diff line change @@ -63,12 +63,13 @@ public function __toString(): string
63
63
64
64
public function render (OutputFormat $ outputFormat ): string
65
65
{
66
- $ result = $ outputFormat ->comments ($ this );
66
+ $ formatter = $ outputFormat ->getFormatter ();
67
+ $ result = $ formatter ->comments ($ this );
67
68
$ arguments = $ this ->arguments ;
68
69
if ($ arguments ) {
69
70
$ arguments = ' ' . $ arguments ;
70
71
}
71
- $ result .= "@ {$ this ->type }$ arguments {$ outputFormat ->spaceBeforeOpeningBrace ()}{ " ;
72
+ $ result .= "@ {$ this ->type }$ arguments {$ formatter ->spaceBeforeOpeningBrace ()}{ " ;
72
73
$ result .= $ this ->renderRules ($ outputFormat );
73
74
$ result .= '} ' ;
74
75
return $ result ;
You can’t perform that action at this time.
0 commit comments