@@ -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; |