Skip to content

Commit b9506d8

Browse files
committed
[TASK] Update Baseline
1 parent 31d5f91 commit b9506d8

File tree

2 files changed

+6
-72
lines changed

2 files changed

+6
-72
lines changed

config/phpstan-baseline.neon

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ parameters:
6666
count: 1
6767
path: ../src/Property/CSSNamespace.php
6868

69-
-
70-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
71-
identifier: method.notFound
72-
count: 1
73-
path: ../src/Property/Charset.php
74-
7569
-
7670
message: '#^Method Sabberworm\\CSS\\Property\\Charset\:\:atRuleArgs\(\) should return string but returns Sabberworm\\CSS\\Value\\CSSString\.$#'
7771
identifier: return.type
@@ -108,36 +102,6 @@ parameters:
108102
count: 1
109103
path: ../src/RuleSet/AtRuleSet.php
110104

111-
-
112-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
113-
identifier: method.notFound
114-
count: 1
115-
path: ../src/RuleSet/DeclarationBlock.php
116-
117-
-
118-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:implode\(\)\.$#'
119-
identifier: method.notFound
120-
count: 1
121-
path: ../src/RuleSet/DeclarationBlock.php
122-
123-
-
124-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceAfterSelectorSeparator\(\)\.$#'
125-
identifier: method.notFound
126-
count: 1
127-
path: ../src/RuleSet/DeclarationBlock.php
128-
129-
-
130-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceBeforeOpeningBrace\(\)\.$#'
131-
identifier: method.notFound
132-
count: 1
133-
path: ../src/RuleSet/DeclarationBlock.php
134-
135-
-
136-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceBeforeSelectorSeparator\(\)\.$#'
137-
identifier: method.notFound
138-
count: 1
139-
path: ../src/RuleSet/DeclarationBlock.php
140-
141105
-
142106
message: '#^Loose comparison via "\!\=" is not allowed\.$#'
143107
identifier: notEqual.notAllowed
@@ -156,36 +120,6 @@ parameters:
156120
count: 1
157121
path: ../src/RuleSet/DeclarationBlock.php
158122

159-
-
160-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:removeLastSemicolon\(\)\.$#'
161-
identifier: method.notFound
162-
count: 1
163-
path: ../src/RuleSet/RuleSet.php
164-
165-
-
166-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:safely\(\)\.$#'
167-
identifier: method.notFound
168-
count: 1
169-
path: ../src/RuleSet/RuleSet.php
170-
171-
-
172-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceAfterRules\(\)\.$#'
173-
identifier: method.notFound
174-
count: 1
175-
path: ../src/RuleSet/RuleSet.php
176-
177-
-
178-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceBeforeRules\(\)\.$#'
179-
identifier: method.notFound
180-
count: 1
181-
path: ../src/RuleSet/RuleSet.php
182-
183-
-
184-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceBetweenRules\(\)\.$#'
185-
identifier: method.notFound
186-
count: 1
187-
path: ../src/RuleSet/RuleSet.php
188-
189123
-
190124
message: '#^Only booleans are allowed in a negated boolean, string\|null given\.$#'
191125
identifier: booleanNot.exprNotBoolean

src/RuleSet/RuleSet.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,18 +278,18 @@ protected function renderRules(OutputFormat $outputFormat)
278278
$isFirst = true;
279279
$nextLevelFormat = $outputFormat->nextLevel();
280280
foreach ($this->getRules() as $rule) {
281-
$renderedRule = $nextLevelFormat->getFormatter()
282-
->safely(static function () use ($rule, $nextLevelFormat): string {
283-
return $rule->render($nextLevelFormat);
284-
});
281+
$nextLevelFormatter = $nextLevelFormat->getFormatter();
282+
$renderedRule = $nextLevelFormatter->safely(static function () use ($rule, $nextLevelFormat): string {
283+
return $rule->render($nextLevelFormat);
284+
});
285285
if ($renderedRule === null) {
286286
continue;
287287
}
288288
if ($isFirst) {
289289
$isFirst = false;
290-
$result .= $nextLevelFormat->getFormatter()->spaceBeforeRules();
290+
$result .= $nextLevelFormatter->spaceBeforeRules();
291291
} else {
292-
$result .= $nextLevelFormat->getFormatter()->spaceBetweenRules();
292+
$result .= $nextLevelFormatter->spaceBetweenRules();
293293
}
294294
$result .= $renderedRule;
295295
}

0 commit comments

Comments
 (0)