💚 Fix PHPCS
This commit is contained in:
parent
06e6493664
commit
e535ce8c40
@ -30,13 +30,15 @@ class OuestFrance extends Parser
|
|||||||
$parsedHome->energy = $crawler->filter('#dpeCateg > strong')->text();
|
$parsedHome->energy = $crawler->filter('#dpeCateg > strong')->text();
|
||||||
// $parsedHome->city = ?
|
// $parsedHome->city = ?
|
||||||
// $parsedHome->map = ?
|
// $parsedHome->map = ?
|
||||||
$parsedHome->pictures = $crawler->filter('#slider > noscript > .slides > li')->each(static function(Crawler $node, $i) {
|
$parsedHome->pictures = $crawler
|
||||||
if ($node->children('img')) {
|
->filter('#slider > noscript > .slides > li')
|
||||||
return $node->children('img')->attr('src');
|
->each(static function (Crawler $node, $i) {
|
||||||
}
|
if ($node->children('img')) {
|
||||||
|
return $node->children('img')->attr('src');
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
return $parsedHome;
|
return $parsedHome;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user