Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 73-75 (lines=3) @@
70
	public function setRowsCount($rowsCount,$colsCount=NULL,$force=false){
71
		$count=$this->count();
72
		if($rowsCount<2 && $force===false){
73
			for($i=$count;$i<$colsCount;$i++){
74
				$this->addItem(new HtmlGridCol("col-".$this->identifier."-".$i));
75
			}
76
		}else{
77
			if($this->hasOnlyCols($count)){
78
				$tmpContent=$this->content;
@@ 101-103 (lines=3) @@
98
		if($toCreate==true){
99
			$count=$this->count();
100
			if($count==0 || $this->hasOnlyCols($count)){
101
				for($i=$count;$i<$numCols;$i++){
102
					$this->addItem(new HtmlGridCol("col-".$this->identifier."-".$i,$width));
103
				}
104
			}else{
105
				for($i=0;$i<$count;$i++){
106
					$this->getItem($i)->setColsCount($numCols);