|
@@ -7,8 +7,12 @@ |
|
|
block discarded – undo |
|
7
|
7
|
namespace Transphporm\Property; |
|
8
|
8
|
class Display implements \Transphporm\Property { |
|
9
|
9
|
public function run(array $values, \DomElement $element, array $rules, \Transphporm\Hook\PseudoMatcher $pseudoMatcher, array $properties = []) { |
|
10
|
|
- if ($pseudoMatcher->hasFunction('attr')) $element->removeAttribute($pseudoMatcher->getFuncArgs('attr')[0]); |
|
11
|
|
- else if (strtolower($values[0]) === 'none') $element->setAttribute('transphporm', 'remove'); |
|
12
|
|
- else $element->setAttribute('transphporm', 'show'); |
|
|
10
|
+ if ($pseudoMatcher->hasFunction('attr')) { |
|
|
11
|
+ $element->removeAttribute($pseudoMatcher->getFuncArgs('attr')[0]); |
|
|
12
|
+ } else if (strtolower($values[0]) === 'none') { |
|
|
13
|
+ $element->setAttribute('transphporm', 'remove'); |
|
|
14
|
+ } else { |
|
|
15
|
+ $element->setAttribute('transphporm', 'show'); |
|
|
16
|
+ } |
|
13
|
17
|
} |
|
14
|
18
|
} |
Please login to merge, or discard this patch.