Completed
Push — master ( 353714...c2eaed )
by Tom
05:54
created
src/Property/Display.php 1 patch
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,8 +7,12 @@
 block discarded – undo
7 7
 namespace Transphporm\Property;
8 8
 class Display implements \Transphporm\Property {
9 9
 	public function run($value, \DomElement $element, \Transphporm\Hook\PropertyHook $rule) {
10
-		if ($attr = $rule->getPseudoMatcher()->attr()) $element->removeAttribute($attr);
11
-		else if (strtolower($value[0]) === 'none') $element->setAttribute('transphporm', 'remove');
12
-		else $element->setAttribute('transphporm', 'show');
10
+		if ($attr = $rule->getPseudoMatcher()->attr()) {
11
+			$element->removeAttribute($attr);
12
+		} else if (strtolower($value[0]) === 'none') {
13
+			$element->setAttribute('transphporm', 'remove');
14
+		} else {
15
+			$element->setAttribute('transphporm', 'show');
16
+		}
13 17
 	}
14 18
 }
15 19
\ No newline at end of file
Please login to merge, or discard this patch.