File tree Expand file tree Collapse file tree 2 files changed +5
-22
lines changed Expand file tree Collapse file tree 2 files changed +5
-22
lines changed Original file line number Diff line number Diff line change @@ -294,24 +294,6 @@ parameters:
294
294
count : 1
295
295
path : ../src/Value/CalcRuleValueList.php
296
296
297
- -
298
- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:implode\(\)\.$#'
299
- identifier : method.notFound
300
- count : 2
301
- path : ../src/Value/Color.php
302
-
303
- -
304
- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceAfterListArgumentSeparator\(\)\.$#'
305
- identifier : method.notFound
306
- count : 1
307
- path : ../src/Value/Color.php
308
-
309
- -
310
- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceBeforeListArgumentSeparator\(\)\.$#'
311
- identifier : method.notFound
312
- count : 1
313
- path : ../src/Value/Color.php
314
-
315
297
-
316
298
message : ' #^Call to method Sabberworm\\CSS\\Value\\Color\:\:hasNoneAsComponentValue\(\) with incorrect case\: HasNoneAsComponentValue$#'
317
299
identifier : method.nameCase
Original file line number Diff line number Diff line change @@ -383,11 +383,12 @@ private function renderInModernSyntax(OutputFormat $outputFormat): string
383
383
unset($ componentsWithoutAlpha ['a ' ]);
384
384
}
385
385
386
- $ arguments = $ outputFormat ->implode (' ' , $ componentsWithoutAlpha );
386
+ $ formatter = $ outputFormat ->getFormatter ();
387
+ $ arguments = $ formatter ->implode (' ' , $ componentsWithoutAlpha );
387
388
if (isset ($ alpha )) {
388
- $ separator = $ outputFormat ->spaceBeforeListArgumentSeparator ('/ ' )
389
- . '/ ' . $ outputFormat ->spaceAfterListArgumentSeparator ('/ ' );
390
- $ arguments = $ outputFormat ->implode ($ separator , [$ arguments , $ alpha ]);
389
+ $ separator = $ formatter ->spaceBeforeListArgumentSeparator ('/ ' )
390
+ . '/ ' . $ formatter ->spaceAfterListArgumentSeparator ('/ ' );
391
+ $ arguments = $ formatter ->implode ($ separator , [$ arguments , $ alpha ]);
391
392
}
392
393
393
394
return $ this ->getName () . '( ' . $ arguments . ') ' ;
You can’t perform that action at this time.
0 commit comments