From 6696c03edbcff24271052e7f5dd099b055c13711 Mon Sep 17 00:00:00 2001 From: Baspa Date: Thu, 17 Aug 2023 07:48:56 +0000 Subject: [PATCH] Fix styling --- src/Checks/Content/AltTagCheck.php | 3 +-- tests/Checks/Content/AltTagCheckTest.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Checks/Content/AltTagCheck.php b/src/Checks/Content/AltTagCheck.php index b1cb244b..ba5681dc 100644 --- a/src/Checks/Content/AltTagCheck.php +++ b/src/Checks/Content/AltTagCheck.php @@ -52,9 +52,8 @@ public function validateContent(Crawler $crawler): bool $imagesWithEmptyAlt = $crawler->filterXPath('//img[@alt=""]')->each(function (Crawler $node, $i) { $src = $node->attr('src'); - - $dimensions = $this->getImageDimensions($src, $node); + $dimensions = $this->getImageDimensions($src, $node); if ($dimensions['width'] < 5 || $dimensions['height'] < 5) { return null; diff --git a/tests/Checks/Content/AltTagCheckTest.php b/tests/Checks/Content/AltTagCheckTest.php index 66885776..f36a5baf 100644 --- a/tests/Checks/Content/AltTagCheckTest.php +++ b/tests/Checks/Content/AltTagCheckTest.php @@ -41,4 +41,4 @@ $crawler->addHtmlContent(Http::get('vormkracht10.nl')->body()); $this->assertFalse($check->check(Http::get('vormkracht10.nl'), $crawler)); -}); \ No newline at end of file +});