diff --git a/src/Css/CssDocument.php b/src/Css/CssDocument.php
index c5bb78f1..a0d7628e 100644
--- a/src/Css/CssDocument.php
+++ b/src/Css/CssDocument.php
@@ -63,7 +63,7 @@ public function __construct(string $css, bool $debug)
private function hasNestedAtRule(string $css): bool
{
return (new Preg())
- ->match('/@(?:media|supports|(?:-webkit-|-moz-|-ms-|-o-)?+(keyframes|document))\\b/', $css) !== 0;
+ ->match('/@(?:media|supports|(?:-webkit-|-moz-|-ms-|-o-)?+(keyframes|document))\\b/', $css) !== 0;
}
/**
diff --git a/tests/Support/Traits/CssDataProviders.php b/tests/Support/Traits/CssDataProviders.php
index 343b9771..1c50c5e7 100644
--- a/tests/Support/Traits/CssDataProviders.php
+++ b/tests/Support/Traits/CssDataProviders.php
@@ -29,19 +29,19 @@ public function provideEquivalentCompleteCss(): array
{
$datasetsWithAtMediaRuleSelectorListAndPropertyDeclaration = self::crossDatasetWithItself([
'unminified CSS with `@media` rule, selector list, and property declaration'
- => ['@media screen { html, body { color: green; } }'],
+ => ['@media screen { html, body { color: green; } }'],
'minified CSS with `@media` rule, selector list, and property declaration'
- => ['@media screen{html,body{color:green}}'],
+ => ['@media screen{html,body{color:green}}'],
'CSS with `@media` rule, selector list, and property declaration, with extra spaces'
- => [' @media screen { html , body { color : green ; } } '],
+ => [' @media screen { html , body { color : green ; } } '],
'CSS with `@media` rule, selector list, and property declaration, with linefeeds'
- => ["\n@media\nscreen\n{\nhtml\n,\nbody\n{\ncolor\n:\ngreen\n;\n}\n}\n"],
+ => ["\n@media\nscreen\n{\nhtml\n,\nbody\n{\ncolor\n:\ngreen\n;\n}\n}\n"],
'CSS with `@media` rule, selector list, and property declaration, with Windows line endings'
- => ["\r\n@media\r\nscreen\r\n{\r\nhtml\r\n,\r\nbody\r\n{\r\ncolor\r\n:\r\ngreen\r\n;\r\n}\r\n}\r\n"],
+ => ["\r\n@media\r\nscreen\r\n{\r\nhtml\r\n,\r\nbody\r\n{\r\ncolor\r\n:\r\ngreen\r\n;\r\n}\r\n}\r\n"],
'CSS with `@media` rule, selector list, and property declaration, with uppercase at-rule name'
- => ['@MEDIA screen { html, body { color: green; } }'],
+ => ['@MEDIA screen { html, body { color: green; } }'],
'CSS with `@media` rule, selector list, and property declaration, with mixed-case at-rule name'
- => ['@MeDiA screen { html, body { color: green; } }'],
+ => ['@MeDiA screen { html, body { color: green; } }'],
]);
$datasetsWithUrlPropertyValue = self::crossDatasetWithItself([
@@ -53,7 +53,7 @@ public function provideEquivalentCompleteCss(): array
'CSS with single-quoted string in property value' => ['.new::before { content: \'New Entry! \'; }'],
'CSS with double-quoted string in property value' => ['.new::before { content: "New Entry! "; }'],
'CSS with quoted string in property value without trailing semicolon'
- => ['.new::before { content: "New Entry! " }'],
+ => ['.new::before { content: "New Entry! " }'],
'minified CSS with quoted string in property value' => ['.new::before{content:"New Entry! "}'],
]);
diff --git a/tests/Unit/Css/CssDocumentTest.php b/tests/Unit/Css/CssDocumentTest.php
index c70243aa..ca6e87ea 100644
--- a/tests/Unit/Css/CssDocumentTest.php
+++ b/tests/Unit/Css/CssDocumentTest.php
@@ -572,16 +572,16 @@ public function provideInvalidNonConditionalAtRuleWhichDoesNotCauseException():
return [
'`@font-face` without `font-family`' => [
'
- @font-face {
- src: url("/foo-sans.woff2") format("woff2");
- }
+ @font-face {
+ src: url("/foo-sans.woff2") format("woff2");
+ }
',
],
'`@font-face` without `src`' => [
'
- @font-face {
- font-family: "Foo Sans";
- }
+ @font-face {
+ font-family: "Foo Sans";
+ }
',
],
'`@import` after style rule' => ['@import "foo.css";', 'p { color: red; }'],
diff --git a/tests/Unit/HtmlProcessor/AbstractHtmlProcessorTest.php b/tests/Unit/HtmlProcessor/AbstractHtmlProcessorTest.php
index 6aedce12..5e2102ac 100644
--- a/tests/Unit/HtmlProcessor/AbstractHtmlProcessorTest.php
+++ b/tests/Unit/HtmlProcessor/AbstractHtmlProcessorTest.php
@@ -224,9 +224,9 @@ public function provideHtmlWithOptionalTagsOmitted(): array
// broken: OPTGROUP end tag omission with OPTGROUP element following
'OPTGROUP end tag omission at end of list' => [
'',
+ . '