Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa authored and github-actions[bot] committed Aug 17, 2023
1 parent b7822d4 commit 6696c03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Checks/Content/AltTagCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/Checks/Content/AltTagCheckTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
$crawler->addHtmlContent(Http::get('vormkracht10.nl')->body());

$this->assertFalse($check->check(Http::get('vormkracht10.nl'), $crawler));
});
});

0 comments on commit 6696c03

Please sign in to comment.