@@ -10,8 +10,9 @@ discard block |
||
10 | 10 | public function __construct($identifier, $src="", $alt="",$size=NULL) { |
11 | 11 | $image=new HtmlImg("img-",$src,$alt); |
12 | 12 | parent::__construct($identifier, "div","ui image",$image); |
13 | - if(isset($size)) |
|
14 | - $this->setSize($size); |
|
13 | + if(isset($size)) { |
|
14 | + $this->setSize($size); |
|
15 | + } |
|
15 | 16 | } |
16 | 17 | |
17 | 18 | public function setCircular(){ |
@@ -19,8 +20,9 @@ discard block |
||
19 | 20 | } |
20 | 21 | |
21 | 22 | public function asAvatar($caption=NULL){ |
22 | - if(isset($caption)) |
|
23 | - $this->wrap("",$caption); |
|
23 | + if(isset($caption)) { |
|
24 | + $this->wrap("",$caption); |
|
25 | + } |
|
24 | 26 | return $this->addToProperty("class", "avatar"); |
25 | 27 | } |
26 | 28 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | foreach ($icons as $icon=>$size){ |
37 | 37 | $group->addIcon($icon,$size); |
38 | 38 | } |
39 | - }else{ |
|
39 | + } else{ |
|
40 | 40 | foreach ($icons as $icon){ |
41 | 41 | $group->addIcon($icon); |
42 | 42 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | $title=JArray::getValue($content, "title",1); |
19 | 19 | $desc=JArray::getValue($content, "description",2); |
20 | 20 | $status=JArray::getValue($content, "status",3); |
21 | - }else{ |
|
21 | + } else{ |
|
22 | 22 | $icon=@$content["icon"]; |
23 | 23 | $title=@$content["title"]; |
24 | 24 | $desc=@$content["description"]; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | if(isset($title)===true){ |
34 | 34 | $this->setTitle($title,$desc); |
35 | 35 | } |
36 | - }else{ |
|
36 | + } else{ |
|
37 | 37 | $this->setContent($content); |
38 | 38 | } |
39 | 39 | } |
@@ -10,8 +10,9 @@ discard block |
||
10 | 10 | |
11 | 11 | public function __construct( $identifier,$tagName="tbody",$rowCount=NULL,$colCount=NULL){ |
12 | 12 | parent::__construct( $identifier, $tagName, ""); |
13 | - if(isset($rowCount) && isset($colCount)) |
|
14 | - $this->setRowCount($rowCount, $colCount); |
|
13 | + if(isset($rowCount) && isset($colCount)) { |
|
14 | + $this->setRowCount($rowCount, $colCount); |
|
15 | + } |
|
15 | 16 | } |
16 | 17 | |
17 | 18 | public function setRowCount($rowCount,$colCount){ |
@@ -79,8 +80,9 @@ discard block |
||
79 | 80 | |
80 | 81 | public function getColCount(){ |
81 | 82 | $result=0; |
82 | - if($this->count()>0) |
|
83 | - $result=$this->getItem(0)->getColCount(); |
|
83 | + if($this->count()>0) { |
|
84 | + $result=$this->getItem(0)->getColCount(); |
|
85 | + } |
|
84 | 86 | return $result; |
85 | 87 | } |
86 | 88 | |
@@ -90,7 +92,7 @@ discard block |
||
90 | 92 | if(isset($row)===true){ |
91 | 93 | $row->delete($colIndex); |
92 | 94 | } |
93 | - }else{ |
|
95 | + } else{ |
|
94 | 96 | $this->removeItem($rowIndex); |
95 | 97 | } |
96 | 98 | return $this; |