@@ -68,10 +68,11 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | public function setDismissable($dismiss=true){ |
| 71 | - if($dismiss===true) |
|
| 72 | - $this->close=new HtmlIcon("close-".$this->identifier, "close"); |
|
| 73 | - else |
|
| 74 | - $this->close=NULL; |
|
| 71 | + if($dismiss===true) { |
|
| 72 | + $this->close=new HtmlIcon("close-".$this->identifier, "close"); |
|
| 73 | + } else { |
|
| 74 | + $this->close=NULL; |
|
| 75 | + } |
|
| 75 | 76 | return $this; |
| 76 | 77 | } |
| 77 | 78 | |
@@ -113,8 +114,9 @@ discard block |
||
| 113 | 114 | public function setMessage($message){ |
| 114 | 115 | if(\is_array($this->content)){ |
| 115 | 116 | $this->content[\sizeof($this->content)-1]=$message; |
| 116 | - }else |
|
| 117 | - $this->setContent($message); |
|
| 117 | + } else { |
|
| 118 | + $this->setContent($message); |
|
| 119 | + } |
|
| 118 | 120 | } |
| 119 | 121 | |
| 120 | 122 | public function setTimeout($_timeout) { |