@@ -24,8 +24,9 @@ discard block |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public function removeIcon(){ |
| 27 | - if(isset($this->content["icon"])) |
|
| 28 | - unset($this->content["icon"]); |
|
| 27 | + if(isset($this->content["icon"])) { |
|
| 28 | + unset($this->content["icon"]); |
|
| 29 | + } |
|
| 29 | 30 | return $this; |
| 30 | 31 | } |
| 31 | 32 | |
@@ -77,7 +78,7 @@ discard block |
||
| 77 | 78 | $this->setTagName("div"); |
| 78 | 79 | $this->removeProperty("href"); |
| 79 | 80 | $this->addToPropertyCtrl("class", "active", array("active")); |
| 80 | - }else{ |
|
| 81 | + } else{ |
|
| 81 | 82 | $this->removePropertyValue("class", "active"); |
| 82 | 83 | } |
| 83 | 84 | return $this; |
@@ -85,8 +86,9 @@ discard block |
||
| 85 | 86 | |
| 86 | 87 | public function asLink($href=NULL,$part=NULL){ |
| 87 | 88 | $this->setTagName("a"); |
| 88 | - if(isset($href)) |
|
| 89 | - $this->setProperty("href", $href); |
|
| 89 | + if(isset($href)) { |
|
| 90 | + $this->setProperty("href", $href); |
|
| 91 | + } |
|
| 90 | 92 | return $this; |
| 91 | 93 | } |
| 92 | 94 | |
@@ -97,8 +99,9 @@ discard block |
||
| 97 | 99 | * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::compile() |
| 98 | 100 | */ |
| 99 | 101 | public function compile(JsUtils $js=NULL, &$view=NULL) { |
| 100 | - if(\is_array($this->content) && JArray::isAssociative($this->content)) |
|
| 101 | - $this->content=JArray::sortAssociative($this->content, [ "right-content","icon","image","content" ]); |
|
| 102 | + if(\is_array($this->content) && JArray::isAssociative($this->content)) { |
|
| 103 | + $this->content=JArray::sortAssociative($this->content, [ "right-content","icon","image","content" ]); |
|
| 104 | + } |
|
| 102 | 105 | return parent::compile($js, $view); |
| 103 | 106 | } |
| 104 | 107 | } |