@@ -101,8 +101,9 @@ discard block |
||
| 101 | 101 | * @return \Ajax\semantic\html\collections\HtmlGrid |
| 102 | 102 | */ |
| 103 | 103 | public function setPadded($value=NULL){ |
| 104 | - if(isset($value)) |
|
| 105 | - $this->addToPropertyCtrl("class", $value,array("vertically","horizontally")); |
|
| 104 | + if(isset($value)) { |
|
| 105 | + $this->addToPropertyCtrl("class", $value,array("vertically","horizontally")); |
|
| 106 | + } |
|
| 106 | 107 | return $this->addToProperty("class", "padded"); |
| 107 | 108 | } |
| 108 | 109 | |
@@ -124,8 +125,9 @@ discard block |
||
| 124 | 125 | * @see \Ajax\common\html\HtmlCollection::createItem() |
| 125 | 126 | */ |
| 126 | 127 | protected function createItem($value){ |
| 127 | - if($this->_createCols===false) |
|
| 128 | - $value=null; |
|
| 128 | + if($this->_createCols===false) { |
|
| 129 | + $value=null; |
|
| 130 | + } |
|
| 129 | 131 | $item=new HtmlGridRow($this->identifier."-row-".($this->count()+1),$value,$this->_colSizing); |
| 130 | 132 | return $item; |
| 131 | 133 | } |