| Total Complexity | 8 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Coverage | 86.96% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Url implements ScraperInterface |
||
| 13 | { |
||
| 14 | private ?Factory $assetFactory = null; |
||
| 15 | |||
| 16 | 3 | public function injectAssetFactory(Factory $assetFactory): void |
|
| 17 | { |
||
| 18 | 3 | $this->assetFactory = $assetFactory; |
|
| 19 | 3 | } |
|
| 20 | |||
| 21 | 3 | public function scrape(string $content): ?Collection |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Extracts paths to resources in CSS code. |
||
| 29 | * This means file references which are included in "url(...)". |
||
| 30 | * |
||
| 31 | * @param string $cssContent |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | 3 | private function extractUrlPaths($cssContent) |
|
| 68 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.