Skip to content

Commit

Permalink
update Locale Pack selector
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Sep 4, 2023
1 parent 39651c3 commit e39cfbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/google/src/Extractor/SERPExtractor.php
Expand Up @@ -111,7 +111,7 @@ public function extractBusinessResults(): array

if ($node->childNodes->item(0)->nodeName ?? '' === 'i') {

Check failure on line 112 in packages/google/src/Extractor/SERPExtractor.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.1 - prefer-stable - ubuntu-latest

Strict comparison using === between '' and 'i' will always evaluate to false.

Check failure on line 112 in packages/google/src/Extractor/SERPExtractor.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.1 - prefer-stable - ubuntu-latest

Strict comparison using === between '' and 'i' will always evaluate to false.
$node = (new Crawler($node->parentNode))->filter('[data-attrid="title"]')->getNode(0);
$mapsResults[$i]->name = trim(Helper::htmlToPlainText($node->textContent));
$mapsResults[$i]->name = trim(Helper::htmlToPlainText($node->textContent ?? ''));
} else {
$mapsResults[$i]->name = $this->extractBusinessName($node);
}
Expand Down

0 comments on commit e39cfbc

Please sign in to comment.