@@ -55,10 +55,11 @@ |
||
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | public function setDismissable($dismiss=true){ |
| 58 | - if($dismiss===true) |
|
| 59 | - $this->close=new HtmlIcon("close-".$this->identifier, "close"); |
|
| 60 | - else |
|
| 61 | - $this->close=NULL; |
|
| 58 | + if($dismiss===true) { |
|
| 59 | + $this->close=new HtmlIcon("close-".$this->identifier, "close"); |
|
| 60 | + } else { |
|
| 61 | + $this->close=NULL; |
|
| 62 | + } |
|
| 62 | 63 | return $this; |
| 63 | 64 | } |
| 64 | 65 | |
@@ -45,9 +45,9 @@ |
||
| 45 | 45 | * @return \Ajax\common\html\HtmlDoubleElement |
| 46 | 46 | */ |
| 47 | 47 | public function getItem($index) { |
| 48 | - if (is_int($index)) |
|
| 49 | - return $this->content[$index]; |
|
| 50 | - else { |
|
| 48 | + if (is_int($index)) { |
|
| 49 | + return $this->content[$index]; |
|
| 50 | + } else { |
|
| 51 | 51 | $elm=$this->getElementById($index, $this->content); |
| 52 | 52 | return $elm; |
| 53 | 53 | } |