OuestFranceImmoParser   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 13
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A parsePhoto() 0 3 1
1
<?php
2
3
namespace App\Parser;
4
5
use App\Enum\Provider;
6
use Symfony\Component\DomCrawler\Crawler;
7
8
class OuestFranceImmoParser extends AbstractParser
9
{
10
    protected const PROVIDER = Provider::OUESTFRANCE_IMMO;
11
12
    protected const SELECTOR_AD_WRAPPER  = 'td[style*="padding:5px 0;"]';
13
    protected const SELECTOR_LOCATION    = '.mj-column-per-50:nth-child(2) tr:nth-child(3) div';
14
15
    /**
16
     * {@inheritDoc}
17
     */
18 1
    protected function parsePhoto(Crawler $crawler): ?string
19
    {
20 1
        return str_replace('375-180', '1200-900', parent::parsePhoto($crawler));
21
    }
22
}
23