💚 Fix la dernière CI

This commit is contained in:
Clément 2021-02-03 16:43:17 +01:00
parent 25d18c7184
commit 6704dd5ff6
3 changed files with 10 additions and 6 deletions

View File

@ -27,7 +27,8 @@ class Safti extends Parser
$currency = 'EUR'; $currency = 'EUR';
$parsed_home->title = $property_single->filter('h1')->text(); $parsed_home->title = $property_single->filter('h1')->text();
$parsed_home->price = $currency_formatter->parseCurrency($property_single->filter('.property__price')->text(), $currency); $parsed_home->price = $currency_formatter
->parseCurrency($property_single->filter('.property__price')->text(), $currency);
$parsed_home->city = $property_single->children()->children('div')->eq(1)->filter('p.h4')->text(); $parsed_home->city = $property_single->children()->children('div')->eq(1)->filter('p.h4')->text();
$parsed_home->description = $crawler->filter('[data-testid="real-estate-annonce-single-description"]')->text(); $parsed_home->description = $crawler->filter('[data-testid="real-estate-annonce-single-description"]')->text();
@ -58,7 +59,10 @@ class Safti extends Parser
} }
}); });
$parsed_home->pictures = $crawler->filter('[data-testid="real-estate-mosaic-photo"]')->filter('img')->each(static function($img) { $parsed_home->pictures = $crawler
->filter('[data-testid="real-estate-mosaic-photo"]')
->filter('img')
->each(static function ($img) {
return $img->attr('src'); return $img->attr('src');
}); });