Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function process(HtmlElement $element) |
||
13 | { |
||
14 | $condition = $element->getAttribute('if'); |
||
15 | |||
16 | $element->removeAttribute('if'); |
||
17 | |||
18 | $outerText = '@if('.$condition.') '; |
||
19 | $outerText .= $element->getOuterText(); |
||
20 | $outerText .= ' @endif'; |
||
21 | |||
22 | $element->setOuterText($outerText); |
||
23 | |||
24 | } |
||
25 | } |
||
26 |