Code Duplication    Length = 3-3 lines in 2 locations

Ajax/semantic/html/collections/HtmlGrid.php 2 locations

@@ 101-103 (lines=3) @@
98
	public function setRowsCount($rowsCount,$colsCount=NULL,$force=false){
99
		$count=$this->count();
100
		if($rowsCount<2 && $force===false){
101
			for($i=$count;$i<$colsCount;$i++){
102
				$this->addItem(new HtmlGridCol("col-".$this->identifier."-".$i));
103
			}
104
		}else{
105
			if($this->hasOnlyCols($count)){
106
				$tmpContent=$this->content;
@@ 136-138 (lines=3) @@
133
		if($toCreate==true){
134
			$count=$this->count();
135
			if($count==0 || $this->hasOnlyCols($count)){
136
				for($i=$count;$i<$numCols;$i++){
137
					$this->addItem(new HtmlGridCol("col-".$this->identifier."-".$i,$width));
138
				}
139
			}else{
140
				for($i=0;$i<$count;$i++){
141
					$this->getItem($i)->setColsCount($numCols);