@@ -53,9 +53,9 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | public function setFocusable($value=true){ |
| 56 | - if($value===true) |
|
| 57 | - $this->setProperty("tabindex", "0"); |
|
| 58 | - else{ |
|
| 56 | + if($value===true) { |
|
| 57 | + $this->setProperty("tabindex", "0"); |
|
| 58 | + } else{ |
|
| 59 | 59 | $this->removeProperty("tabindex"); |
| 60 | 60 | } |
| 61 | 61 | return $this; |
@@ -172,8 +172,9 @@ discard block |
||
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | public static function getSocial($identifier,$social,$value=NULL){ |
| 175 | - if($value===NULL) |
|
| 176 | - $value=\ucfirst($social); |
|
| 175 | + if($value===NULL) { |
|
| 176 | + $value=\ucfirst($social); |
|
| 177 | + } |
|
| 177 | 178 | $return=new HtmlButton($identifier,$value); |
| 178 | 179 | $return->addIcon($social); |
| 179 | 180 | return $return->addToPropertyCtrl("class", $social, Social::getConstants()); |
@@ -34,8 +34,9 @@ |
||
| 34 | 34 | * @see BaseHtml::run() |
| 35 | 35 | */ |
| 36 | 36 | public function run(JsUtils $js) { |
| 37 | - if(isset($this->_bsComponent)===false) |
|
| 38 | - $this->_bsComponent=$js->semantic()->accordion("#".$this->identifier,$this->params); |
|
| 37 | + if(isset($this->_bsComponent)===false) { |
|
| 38 | + $this->_bsComponent=$js->semantic()->accordion("#".$this->identifier,$this->params); |
|
| 39 | + } |
|
| 39 | 40 | $this->addEventsOnRun($js); |
| 40 | 41 | return $this->_bsComponent; |
| 41 | 42 | } |