Skip to content

Commit 25376a1

Browse files
committed
[CLEANUP] Autoformat the code
1 parent 35c0389 commit 25376a1

File tree

5 files changed

+59
-22
lines changed

5 files changed

+59
-22
lines changed

src/Parsing/ParserState.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ public function getSettings()
117117
return $this->oParserSettings;
118118
}
119119

120-
121120
public function anchor(): Anchor
122121
{
123122
return new Anchor($this->iCurrentPosition, $this);

src/Value/Size.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,21 @@ class Size extends PrimitiveValue
2020
* @var array<int, string>
2121
*/
2222
private const ABSOLUTE_SIZE_UNITS = [
23-
'px', 'pt', 'pc',
24-
'cm', 'mm', 'mozmm', 'in',
25-
'vh', 'dvh', 'svh', 'lvh',
26-
'vw', 'vmin', 'vmax', 'rem',
23+
'px',
24+
'pt',
25+
'pc',
26+
'cm',
27+
'mm',
28+
'mozmm',
29+
'in',
30+
'vh',
31+
'dvh',
32+
'svh',
33+
'lvh',
34+
'vw',
35+
'vmin',
36+
'vmax',
37+
'rem',
2738
];
2839

2940
/**

tests/CSSList/AtRuleBlockListTest.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,19 @@ public static function provideSyntacticallyCorrectAtRule(): array
3535
return [
3636
'media print' => ['@media print { html { background: white; color: black; } }'],
3737
'keyframes' => ['@keyframes mymove { from { top: 0px; } }'],
38-
'supports' => ['
39-
@supports (display: flex) {
40-
.flex-container > * {
41-
text-shadow: 0 0 2px blue;
42-
float: none;
38+
'supports' => [
39+
'
40+
@supports (display: flex) {
41+
.flex-container > * {
42+
text-shadow: 0 0 2px blue;
43+
float: none;
44+
}
45+
.flex-container {
46+
display: flex;
47+
}
4348
}
44-
.flex-container {
45-
display: flex;
46-
}
47-
}
48-
'],
49+
',
50+
],
4951
];
5052
}
5153

tests/ParserTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,10 @@ public function emptyGridLineNameLenientInFile(): void
755755
*/
756756
public function invalidGridLineNameInFile(): void
757757
{
758-
$document = self::parsedStructureForFile('invalid-grid-linename', Settings::create()->withMultibyteSupport(true));
758+
$document = self::parsedStructureForFile(
759+
'invalid-grid-linename',
760+
Settings::create()->withMultibyteSupport(true)
761+
);
759762
$expected = 'div {}';
760763
self::assertSame($expected, $document->render());
761764
}

tests/Value/SizeTest.php

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,34 @@ final class SizeTest extends TestCase
2020
public static function provideUnit(): array
2121
{
2222
$units = [
23-
'px', 'pt', 'pc',
24-
'cm', 'mm', 'mozmm', 'in',
25-
'vh', 'dvh', 'svh', 'lvh',
26-
'vw', 'vmin', 'vmax', 'rem',
27-
'%', 'em', 'ex', 'ch', 'fr',
28-
'deg', 'grad', 'rad', 's', 'ms', 'turn', 'Hz', 'kHz',
23+
'px',
24+
'pt',
25+
'pc',
26+
'cm',
27+
'mm',
28+
'mozmm',
29+
'in',
30+
'vh',
31+
'dvh',
32+
'svh',
33+
'lvh',
34+
'vw',
35+
'vmin',
36+
'vmax',
37+
'rem',
38+
'%',
39+
'em',
40+
'ex',
41+
'ch',
42+
'fr',
43+
'deg',
44+
'grad',
45+
'rad',
46+
's',
47+
'ms',
48+
'turn',
49+
'Hz',
50+
'kHz',
2951
];
3052

3153
return \array_combine(

0 commit comments

Comments
 (0)