File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -278,18 +278,18 @@ protected function renderRules(OutputFormat $outputFormat)
278
278
$ isFirst = true ;
279
279
$ nextLevelFormat = $ outputFormat ->nextLevel ();
280
280
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
+ });
285
285
if ($ renderedRule === null ) {
286
286
continue ;
287
287
}
288
288
if ($ isFirst ) {
289
289
$ isFirst = false ;
290
- $ result .= $ nextLevelFormat -> getFormatter () ->spaceBeforeRules ();
290
+ $ result .= $ nextLevelFormatter ->spaceBeforeRules ();
291
291
} else {
292
- $ result .= $ nextLevelFormat -> getFormatter () ->spaceBetweenRules ();
292
+ $ result .= $ nextLevelFormatter ->spaceBetweenRules ();
293
293
}
294
294
$ result .= $ renderedRule ;
295
295
}
You can’t perform that action at this time.
0 commit comments