| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class SeLogerParser extends AbstractParser |
||
| 9 | { |
||
| 10 | protected const PROVIDER = Provider::SELOGER; |
||
| 11 | |||
| 12 | protected const SELECTOR_AD_WRAPPER = '.two-column > a[_category="Bloc annonce"]'; // Ignore "Recommendation" ads |
||
| 13 | protected const SELECTOR_LOCATION = '.contents tr:nth-child(2) a'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * {@inheritDoc} |
||
| 17 | */ |
||
| 18 | 1 | protected function parseLocation(Crawler $crawler): ?string |
|
| 29 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.