Skip to content

Commit 6098bee

Browse files
authored
[CLEANUP] Autoformat the code (MyIntervals#749)
This is the v8.x backport of MyIntervals#748.
1 parent f414ff9 commit 6098bee

File tree

3 files changed

+55
-20
lines changed

3 files changed

+55
-20
lines changed

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
* @internal
2121
*/
2222
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
@@ -33,17 +33,19 @@ public static function provideSyntacticlyCorrectAtRule()
3333
return [
3434
'media print' => ['@media print { html { background: white; color: black; } }'],
3535
'keyframes' => ['@keyframes mymove { from { top: 0px; } }'],
36-
'supports' => ['
37-
@supports (display: flex) {
38-
.flex-container > * {
39-
text-shadow: 0 0 2px blue;
40-
float: none;
36+
'supports' => [
37+
'
38+
@supports (display: flex) {
39+
.flex-container > * {
40+
text-shadow: 0 0 2px blue;
41+
float: none;
42+
}
43+
.flex-container {
44+
display: flex;
45+
}
4146
}
42-
.flex-container {
43-
display: flex;
44-
}
45-
}
46-
'],
47+
',
48+
],
4749
];
4850
}
4951

tests/Value/SizeTest.php

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

2951
return \array_combine(

0 commit comments

Comments
 (0)