diff --git a/app/Parser/OuestFrance.php b/app/Parser/OuestFrance.php index 1ef14b5..141575d 100644 --- a/app/Parser/OuestFrance.php +++ b/app/Parser/OuestFrance.php @@ -30,13 +30,15 @@ class OuestFrance extends Parser $parsedHome->energy = $crawler->filter('#dpeCateg > strong')->text(); // $parsedHome->city = ? // $parsedHome->map = ? - $parsedHome->pictures = $crawler->filter('#slider > noscript > .slides > li')->each(static function(Crawler $node, $i) { - if ($node->children('img')) { - return $node->children('img')->attr('src'); - } + $parsedHome->pictures = $crawler + ->filter('#slider > noscript > .slides > li') + ->each(static function (Crawler $node, $i) { + if ($node->children('img')) { + return $node->children('img')->attr('src'); + } - return null; - }); + return null; + }); return $parsedHome; }