@@ -85,10 +85,11 @@ discard block |
||
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 |
||
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 | } |