Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function run($value, $pseudoArgs, $element, \Transphporm\Hook\PseudoMatcher $pseudoMatcher) { |
||
10 | $implodedValue = implode('', $value); |
||
11 | |||
12 | if ($pseudoMatcher->hasFunction('before')) { |
||
13 | $attrValue = $implodedValue . $element->getAttribute($pseudoArgs); |
||
14 | } |
||
15 | else if ($pseudoMatcher->hasFunction('after')) { |
||
16 | $attrValue = $element->getAttribute($pseudoArgs) . $implodedValue; |
||
17 | } |
||
18 | else { |
||
19 | $attrValue = implode('', $value); |
||
20 | } |
||
21 | |||
22 | $element->setAttribute($pseudoArgs, $attrValue); |
||
23 | } |
||
24 | } |
||
25 |