Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | public function extract(string $styles): array |
||
19 | { |
||
20 | $matchCount = preg_match_all($this->getPattern(), $styles, $matches); |
||
21 | |||
22 | if (empty($matchCount)) { |
||
23 | return []; |
||
24 | } |
||
25 | |||
26 | return array_map( |
||
27 | function (string $match): Extractable { |
||
28 | return $this->createExtractable($match); |
||
29 | }, |
||
30 | $matches[1] |
||
31 | ); |
||
46 |