From 4d30ccff1fac979c027ca846400eb941887447d3 Mon Sep 17 00:00:00 2001 From: Bas van Dinther Date: Fri, 11 Aug 2023 10:44:24 +0200 Subject: [PATCH] Use filterXpath so filtering with CSS select is not needed --- src/Checks/Content/TransitionWordRatioCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Checks/Content/TransitionWordRatioCheck.php b/src/Checks/Content/TransitionWordRatioCheck.php index da0c6caf..36c1c7dc 100644 --- a/src/Checks/Content/TransitionWordRatioCheck.php +++ b/src/Checks/Content/TransitionWordRatioCheck.php @@ -39,7 +39,7 @@ public function check(Response $response, Crawler $crawler): bool public function validateContent(Crawler $crawler): bool { - $content = $crawler->filter('body')->text(); + $content = $crawler->filterXPath('//body')->text(); $transitionWords = TransitionWords::getTransitionWordsOnly(config('seo.language'));