💚 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

@ -91,7 +91,7 @@ abstract class Parser
*
* @return string
*/
protected function calculateGES($score)
protected function calculateGES($score)
{
if (empty($score)) {
return 'Inconnu';

View File

@ -27,7 +27,8 @@ class Safti extends Parser
$currency = 'EUR';
$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->description = $crawler->filter('[data-testid="real-estate-annonce-single-description"]')->text();
@ -58,9 +59,12 @@ class Safti extends Parser
}
});
$parsed_home->pictures = $crawler->filter('[data-testid="real-estate-mosaic-photo"]')->filter('img')->each(static function($img) {
return $img->attr('src');
});
$parsed_home->pictures = $crawler
->filter('[data-testid="real-estate-mosaic-photo"]')
->filter('img')
->each(static function ($img) {
return $img->attr('src');
});
return $parsed_home;
}

View File

@ -140,7 +140,7 @@ class SeLoger extends Parser
->filter('.swiper-wrapper')
->first()
->filter('[data-background]')
->each(static function($img) {
->each(static function ($img) {
return $img->attr('data-background');
});