| Total Complexity | 6 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class CssAttribute implements ScraperInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var \Aoe\Asdis\Content\Scraper\Css\Url |
||
| 14 | */ |
||
| 15 | private $cssUrlScraper; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param \Aoe\Asdis\Content\Scraper\Css\Url $cssUrlScraper |
||
| 19 | */ |
||
| 20 | 2 | public function injectCssUrlScraper(Url $cssUrlScraper) |
|
| 21 | { |
||
| 22 | 2 | $this->cssUrlScraper = $cssUrlScraper; |
|
| 23 | 2 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param $content |
||
| 27 | * @return \Aoe\Asdis\Domain\Model\Asset\Collection |
||
| 28 | */ |
||
| 29 | 2 | public function scrape($content) |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Returns the inner content of all <style></style> blocks of the given markup as an array. |
||
| 36 | * |
||
| 37 | * @param string $content |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | 2 | private function getStyleBlocksFromMarkup($content) |
|
| 53 | } |
||
| 54 | } |