| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 90% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 8 | class PapParser extends AbstractParser |
||
|
|
|||
| 9 | { |
||
| 10 | protected const PROVIDER = Provider::PAP; |
||
| 11 | |||
| 12 | protected const SELECTOR_AD_WRAPPER = 'table tr:nth-child(n+3):not(:last-child)'; |
||
| 13 | protected const SELECTOR_LOCATION = 'td:nth-child(2) b'; |
||
| 14 | protected const SELECTOR_BUILDING_NAME = 'td:nth-child(2)'; |
||
| 15 | protected const SELECTOR_DESCRIPTION = 'td:nth-child(2)'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritDoc} |
||
| 19 | */ |
||
| 20 | 1 | protected function createCrawler(string $html): Crawler |
|
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritDoc} |
||
| 31 | */ |
||
| 32 | 1 | protected function parsePrice(Crawler $crawler): ?float |
|
| 33 | { |
||
| 34 | 1 | return $this->formatter->parsePrice(str_replace('.', '', $crawler->html())); |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritDoc} |
||
| 39 | */ |
||
| 40 | 1 | protected function parseBuildingName(Crawler $crawler): ?string |
|
| 47 | } |
||
| 48 | } |
||
| 49 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths