diff --git a/src/Value/Size.php b/src/Value/Size.php index af8b3a3b2..8907526a5 100644 --- a/src/Value/Size.php +++ b/src/Value/Size.php @@ -20,10 +20,21 @@ class Size extends PrimitiveValue * @internal */ const ABSOLUTE_SIZE_UNITS = [ - 'px', 'pt', 'pc', - 'cm', 'mm', 'mozmm', 'in', - 'vh', 'dvh', 'svh', 'lvh', - 'vw', 'vmin', 'vmax', 'rem', + 'px', + 'pt', + 'pc', + 'cm', + 'mm', + 'mozmm', + 'in', + 'vh', + 'dvh', + 'svh', + 'lvh', + 'vw', + 'vmin', + 'vmax', + 'rem', ]; /** diff --git a/tests/CSSList/AtRuleBlockListTest.php b/tests/CSSList/AtRuleBlockListTest.php index 2e2bd0468..cd41add76 100644 --- a/tests/CSSList/AtRuleBlockListTest.php +++ b/tests/CSSList/AtRuleBlockListTest.php @@ -33,7 +33,8 @@ public static function provideSyntacticlyCorrectAtRule() return [ 'media print' => ['@media print { html { background: white; color: black; } }'], 'keyframes' => ['@keyframes mymove { from { top: 0px; } }'], - 'supports' => [' + 'supports' => [ + ' @supports (display: flex) { .flex-container > * { text-shadow: 0 0 2px blue; @@ -43,7 +44,8 @@ public static function provideSyntacticlyCorrectAtRule() display: flex; } } - '], + ', + ], ]; } diff --git a/tests/Value/SizeTest.php b/tests/Value/SizeTest.php index d743087a5..6470148f0 100644 --- a/tests/Value/SizeTest.php +++ b/tests/Value/SizeTest.php @@ -18,12 +18,34 @@ final class SizeTest extends TestCase public static function provideUnit() { $units = [ - 'px', 'pt', 'pc', - 'cm', 'mm', 'mozmm', 'in', - 'vh', 'dvh', 'svh', 'lvh', - 'vw', 'vmin', 'vmax', 'rem', - '%', 'em', 'ex', 'ch', 'fr', - 'deg', 'grad', 'rad', 's', 'ms', 'turn', 'Hz', 'kHz', + 'px', + 'pt', + 'pc', + 'cm', + 'mm', + 'mozmm', + 'in', + 'vh', + 'dvh', + 'svh', + 'lvh', + 'vw', + 'vmin', + 'vmax', + 'rem', + '%', + 'em', + 'ex', + 'ch', + 'fr', + 'deg', + 'grad', + 'rad', + 's', + 'ms', + 'turn', + 'Hz', + 'kHz', ]; return \array_combine( diff --git a/tests/Value/ValueTest.php b/tests/Value/ValueTest.php index ac259466f..c801fc6f0 100644 --- a/tests/Value/ValueTest.php +++ b/tests/Value/ValueTest.php @@ -39,7 +39,7 @@ public function parsesArithmeticInFunctions($operator) { $subject = Value::parseValue(new ParserState('max(300px, 50vh ' . $operator . ' 10px);', Settings::create())); - self::assertSame('max(300px,50vh ' . $operator . ' 10px)', (string) $subject); + self::assertSame('max(300px,50vh ' . $operator . ' 10px)', (string)$subject); } /** @@ -74,7 +74,7 @@ public function parsesArithmeticWithMultipleOperatorsInFunctions( $subject = Value::parseValue(new ParserState(\sprintf($parserTemplate, $expression), Settings::create())); - self::assertSame(\sprintf($expectedResultTemplate, $expression), (string) $subject); + self::assertSame(\sprintf($expectedResultTemplate, $expression), (string)$subject); } /** @@ -102,6 +102,6 @@ public function parsesArithmeticWithMalformedOperandsInFunctions($leftOperand, $ Settings::create() )); - self::assertSame('max(300px,' . $leftOperand . ' + ' . $rightOperand . ')', (string) $subject); + self::assertSame('max(300px,' . $leftOperand . ' + ' . $rightOperand . ')', (string)$subject); } }