diff --git a/src/HtmlProcessor/CssVariableEvaluator.php b/src/HtmlProcessor/CssVariableEvaluator.php index 69518008..9adf0b9c 100644 --- a/src/HtmlProcessor/CssVariableEvaluator.php +++ b/src/HtmlProcessor/CssVariableEvaluator.php @@ -23,9 +23,9 @@ final class CssVariableEvaluator extends AbstractHtmlProcessor * Replaces all CSS custom property references in inline style attributes with their corresponding values where * defined in inline style attributes (either from the element itself or the nearest ancestor). * - * @throws \UnexpectedValueException - * * @return $this + * + * @throws \UnexpectedValueException */ public function evaluateVariables(): self { @@ -149,7 +149,7 @@ function (string $propertyValue) use (&$substitutionsMade): string { } /** - * @param array $declarations; + * @param array $declarations */ private function getDeclarationsAsString(array $declarations): string { diff --git a/tests/Unit/Css/CssDocumentTest.php b/tests/Unit/Css/CssDocumentTest.php index d0d9cef9..973d4081 100644 --- a/tests/Unit/Css/CssDocumentTest.php +++ b/tests/Unit/Css/CssDocumentTest.php @@ -570,16 +570,20 @@ public function provideInvalidNonConditionalAtRuleWhichCausesException(): array public function provideInvalidNonConditionalAtRuleWhichDoesNotCauseException(): array { return [ - '`@font-face` without `font-family`' => [' - @font-face { - src: url("/foo-sans.woff2") format("woff2"); - } - '], - '`@font-face` without `src`' => [' - @font-face { - font-family: "Foo Sans"; - } - '], + '`@font-face` without `font-family`' => [ + ' + @font-face { + src: url("/foo-sans.woff2") format("woff2"); + } + ', + ], + '`@font-face` without `src`' => [ + ' + @font-face { + font-family: "Foo Sans"; + } + ', + ], '`@import` after style rule' => ['@import "foo.css";', 'p { color: red; }'], '`@import` after `@font-face` rule' => ['@import "foo.css";', self::VALID_AT_FONT_FACE_RULE], ];