Skip to content

Commit 95a0bfb

Browse files
committed
style: fix svg factory test indentation
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 88f981b commit 95a0bfb

1 file changed

Lines changed: 29 additions & 30 deletions

File tree

tests/Unit/Pdf/Svg/SvgPdfXObjectFactoryTest.php

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -643,20 +643,20 @@ public static function provideStyleBlockColorExtractionScenarios(): iterable
643643
['0.0667 0.1333 0.2 rg', '1 0 0 RG', '2.000000 w'],
644644
];
645645

646-
yield 'css class matching applies both rules' => [
647-
<<<'SVG'
646+
yield 'css class matching applies both rules' => [
647+
<<<'SVG'
648648
<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg">
649-
<style>
650-
.red { fill: #ff0000; }
651-
.green { fill: #00ff00; }
652-
</style>
653-
<rect class="red" x="0" y="0" width="10" height="20" fill="inherit"/>
654-
<rect class="green" x="10" y="0" width="10" height="20" fill="inherit"/>
649+
<style>
650+
.red { fill: #ff0000; }
651+
.green { fill: #00ff00; }
652+
</style>
653+
<rect class="red" x="0" y="0" width="10" height="20" fill="inherit"/>
654+
<rect class="green" x="10" y="0" width="10" height="20" fill="inherit"/>
655655
</svg>
656656
SVG,
657-
'/tmp/css-rules.svg',
658-
['1 0 0 rg', '0 1 0 rg'],
659-
];
657+
'/tmp/css-rules.svg',
658+
['1 0 0 rg', '0 1 0 rg'],
659+
];
660660
}
661661

662662
public static function provideDimensionScenarios(): iterable
@@ -711,15 +711,15 @@ public static function provideDimensionScenarios(): iterable
711711
[0.0, 0.0, 10000.0, 8000.0],
712712
];
713713

714-
yield 'trimmed dimensions remain numeric floats' => [
715-
<<<'SVG'
714+
yield 'trimmed dimensions remain numeric floats' => [
715+
<<<'SVG'
716716
<svg width=" 10.5 " height=" 20.75 " xmlns="http://www.w3.org/2000/svg">
717717
<rect x="0" y="0" width="10.5" height="20.75" fill="#000"/>
718718
</svg>
719719
SVG,
720-
'/tmp/trimmed-dims.svg',
721-
[0.0, 0.0, 10.5, 20.75],
722-
];
720+
'/tmp/trimmed-dims.svg',
721+
[0.0, 0.0, 10.5, 20.75],
722+
];
723723
}
724724

725725
public static function provideStrokeWidthScenarios(): iterable
@@ -772,7 +772,7 @@ public static function provideStrokeWidthScenarios(): iterable
772772
SVG,
773773
'/tmp/default-stroke.svg',
774774
'1.000000 w',
775-
['-1.000000 w', '0.000000 w'],
775+
['-1.000000 w', '0.000000 w'],
776776
];
777777

778778
yield 'large stroke width' => [
@@ -880,18 +880,18 @@ public static function provideShapeElementScenarios(): iterable
880880
['1 0 0 rg', '0 1 0 rg', '0 0 1 rg'],
881881
];
882882

883-
yield 'unrecognized text element is skipped with shape parsing' => [
884-
<<<'SVG'
883+
yield 'unrecognized text element is skipped with shape parsing' => [
884+
<<<'SVG'
885885
<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg">
886886
<g>
887887
<path fill="#ff0000" d="M0,0 L20,20 L20,0 Z"/>
888888
<text x="5" y="5">Ignored</text>
889889
</g>
890890
</svg>
891891
SVG,
892-
'/tmp/element-filter.svg',
893-
['1 0 0 rg'],
894-
];
892+
'/tmp/element-filter.svg',
893+
['1 0 0 rg'],
894+
];
895895
}
896896

897897
public static function provideColorScenarios(): iterable
@@ -945,17 +945,16 @@ public static function provideColorScenarios(): iterable
945945
['1 0 0 rg', '0 1 0 rg'],
946946
];
947947

948-
yield 'inline fill beats style fill' => [
949-
<<<'SVG'
948+
yield 'inline fill beats style fill' => [
949+
<<<'SVG'
950950
<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg">
951-
<rect x="0" y="0" width="10" height="10" fill="#ff0000" style="fill:#00ff00"/>
951+
<rect x="0" y="0" width="10" height="10" fill="#ff0000" style="fill:#00ff00"/>
952952
</svg>
953953
SVG,
954-
'/tmp/fill-priority.svg',
955-
['1 0 0 rg'],
956-
['0 1 0 rg'],
957-
];
958-
954+
'/tmp/fill-priority.svg',
955+
['1 0 0 rg'],
956+
['0 1 0 rg'],
957+
];
959958

960959
yield 'rgb color notation' => [
961960
<<<'SVG'

0 commit comments

Comments
 (0)