Total Complexity | 8 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Coverage | 86.96% |
Changes | 0 |
1 | <?php |
||
10 | class Url implements ScraperInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var \Aoe\Asdis\Domain\Model\Asset\Factory |
||
14 | */ |
||
15 | private $assetFactory; |
||
16 | |||
17 | /** |
||
18 | * @param \Aoe\Asdis\Domain\Model\Asset\Factory $assetFactory |
||
19 | */ |
||
20 | 3 | public function injectAssetFactory(Factory $assetFactory) |
|
21 | { |
||
22 | 3 | $this->assetFactory = $assetFactory; |
|
23 | 3 | } |
|
24 | |||
25 | /** |
||
26 | * @param $content |
||
27 | * @return \Aoe\Asdis\Domain\Model\Asset\Collection |
||
28 | */ |
||
29 | 3 | public function scrape($content) |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * Extracts paths to resources in CSS code. |
||
37 | * This means file references which are included in "url(...)". |
||
38 | * |
||
39 | * @param string $cssContent |
||
40 | * @return array |
||
41 | */ |
||
42 | 3 | private function extractUrlPaths($cssContent) |
|
75 | } |