| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class LogicImmoPartnerParser extends AbstractParser |
||
| 9 | { |
||
| 10 | protected const PROVIDER = Provider::LOGIC_IMMO; |
||
| 11 | |||
| 12 | protected const SELECTOR_AD_WRAPPER = 'table[bgcolor="#f1f1f1"] > tr:nth-child(n+6):not(:nth-last-child(-n+8)) table[width=600][bgcolor="#ffffff"]'; |
||
| 13 | protected const SELECTOR_LOCATION = 'td.mea_txt_ad3'; |
||
| 14 | protected const SELECTOR_DESCRIPTION = 'td[style*="font-size:12px"]'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * {@inheritDoc} |
||
| 18 | */ |
||
| 19 | 1 | protected function parseLocation(Crawler $crawler): ?string |
|
| 26 |
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.