Passed
Push — master ( 18a30f...0da08b )
by Jean-Christophe
07:40
created
Ajax/semantic/html/collections/HtmlMessage.php 1 patch
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -85,10 +85,11 @@  discard block
 block discarded – undo
85 85
 	}
86 86
 
87 87
 	public function setDismissable($dismiss = true) {
88
-		if ($dismiss === true)
89
-			$this->close = new HtmlIcon("close-" . $this->identifier, "close");
90
-		else
91
-			$this->close = NULL;
88
+		if ($dismiss === true) {
89
+					$this->close = new HtmlIcon("close-" . $this->identifier, "close");
90
+		} else {
91
+					$this->close = NULL;
92
+		}
92 93
 		return $this;
93 94
 	}
94 95
 
@@ -139,7 +140,8 @@  discard block
 block discarded – undo
139 140
 	public function setMessage($message) {
140 141
 		if (\is_array($this->content)) {
141 142
 			$this->content[\sizeof($this->content) - 1] = $message;
142
-		} else
143
-			$this->setContent($message);
143
+		} else {
144
+					$this->setContent($message);
145
+		}
144 146
 	}
145 147
 }
Please login to merge, or discard this patch.