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 1
1
parameters :
2
2
ignoreErrors :
3
- -
4
- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
5
- identifier : method.notFound
6
- count : 1
7
- path : ../src/CSSList/AtRuleBlockList.php
8
-
9
- -
10
- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceBeforeOpeningBrace\(\)\.$#'
11
- identifier : method.notFound
12
- count : 1
13
- path : ../src/CSSList/AtRuleBlockList.php
14
-
15
3
-
16
4
message : ' #^Only booleans are allowed in an if condition, string given\.$#'
17
5
identifier : if.condNotBoolean
Original file line number Diff line number Diff line change @@ -56,13 +56,14 @@ public function __toString(): string
56
56
57
57
public function render (OutputFormat $ outputFormat ): string
58
58
{
59
- $ result = $ outputFormat ->comments ($ this );
59
+ $ formatter = $ outputFormat ->getFormatter ();
60
+ $ result = $ formatter ->comments ($ this );
60
61
$ result .= $ outputFormat ->getContentBeforeAtRuleBlock ();
61
62
$ arguments = $ this ->arguments ;
62
63
if ($ arguments ) {
63
64
$ arguments = ' ' . $ arguments ;
64
65
}
65
- $ result .= "@ {$ this ->type }$ arguments {$ outputFormat ->spaceBeforeOpeningBrace ()}{ " ;
66
+ $ result .= "@ {$ this ->type }$ arguments {$ formatter ->spaceBeforeOpeningBrace ()}{ " ;
66
67
$ result .= $ this ->renderListContents ($ outputFormat );
67
68
$ result .= '} ' ;
68
69
$ result .= $ outputFormat ->getContentAfterAtRuleBlock ();
You can’t perform that action at this time.
0 commit comments