Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | protected function normalizeAttribute(DOMAttr $attribute) |
||
27 | { |
||
28 | $css = $attribute->nodeValue; |
||
29 | |||
30 | // Only minify if the value does not contain any XPath expression that's not an attribute |
||
31 | if (!preg_match('(\\{(?!@\\w+\\}))', $css)) |
||
32 | { |
||
33 | $attribute->nodeValue = $this->minify($css); |
||
34 | } |
||
35 | } |
||
36 | |||
52 | } |