Completed
Push — master ( b569b1...d88325 )
by Jean-Christophe
03:46
created
Ajax/semantic/html/content/table/HtmlTableContent.php 1 patch
Braces   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,8 +10,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.