Skip to content

Commit

Permalink
Merge branch 'check-javascript-pages' of github.com:vormkracht10/lara…
Browse files Browse the repository at this point in the history
…vel-seo-scanner into check-javascript-pages
  • Loading branch information
Baspa committed Aug 17, 2023
2 parents 192a2b4 + 6696c03 commit 37eaca9
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 37eaca9

Please sign in to comment.