@@ -14,8 +14,9 @@ discard block |
||
| 14 | 14 | public function __construct($identifier, $caption="", $icon=NULL, $tagName="div") { |
| 15 | 15 | parent::__construct($identifier, $tagName, "ui label"); |
| 16 | 16 | $this->content=$caption; |
| 17 | - if (isset($icon)) |
|
| 18 | - $this->addIcon($icon); |
|
| 17 | + if (isset($icon)) { |
|
| 18 | + $this->addIcon($icon); |
|
| 19 | + } |
|
| 19 | 20 | } |
| 20 | 21 | |
| 21 | 22 | /** |
@@ -49,8 +50,9 @@ discard block |
||
| 49 | 50 | * @return \Ajax\semantic\html\elements\HtmlLabel |
| 50 | 51 | */ |
| 51 | 52 | public function asLink($href=NULL) { |
| 52 | - if (isset($href)) |
|
| 53 | - $this->setProperty("href", $href); |
|
| 53 | + if (isset($href)) { |
|
| 54 | + $this->setProperty("href", $href); |
|
| 55 | + } |
|
| 54 | 56 | return $this->setTagName("a"); |
| 55 | 57 | } |
| 56 | 58 | |