Completed
Push — master ( 7abd10...04d259 )
by Jean-Christophe
03:18
created
Ajax/semantic/widgets/datatable/DataTable.php 1 patch
Braces   +10 added lines, -7 removed lines patch added patch discarded remove patch
@@ -72,8 +72,9 @@  discard block
 block discarded – undo
72 72
 
73 73
 			$table->setRowCount(0, \sizeof($captions));
74 74
 			$table->setHeaderValues($captions);
75
-			if(isset($this->_compileParts))
76
-				$table->setCompileParts($this->_compileParts);
75
+			if(isset($this->_compileParts)) {
76
+							$table->setCompileParts($this->_compileParts);
77
+			}
77 78
 			if(isset($this->_searchField) && isset($js)){
78 79
 				$this->_searchField->postOn("change", $this->_urls,"{'s':$(this).val()}","#".$this->identifier." tbody",["preventDefault"=>false,"jqueryDone"=>"replaceWith"]);
79 80
 			}
@@ -178,7 +179,7 @@  discard block
 block discarded – undo
178 179
 		$hasPart=$table->hasPart($part);
179 180
 		if($hasPart){
180 181
 			$row=$table->getPart($part)->addRow(\sizeof($captions));
181
-		}else{
182
+		} else{
182 183
 			$row=$table->getPart($part)->getRow(0);
183 184
 		}
184 185
 		$row->mergeCol();
@@ -257,8 +258,9 @@  discard block
 block discarded – undo
257 258
 	 */
258 259
 	private function getFieldButton($caption,$visibleHover=true){
259 260
 		$bt= new HtmlButton("",$caption);
260
-		if($visibleHover)
261
-			$this->_visibleOver($bt);
261
+		if($visibleHover) {
262
+					$this->_visibleOver($bt);
263
+		}
262 264
 		return $bt;
263 265
 	}
264 266
 
@@ -311,8 +313,9 @@  discard block
 block discarded – undo
311 313
 	private function getDefaultButton($icon,$class=null,$visibleHover=true){
312 314
 		$bt=$this->getFieldButton("",$visibleHover);
313 315
 		$bt->asIcon($icon);
314
-		if(isset($class))
315
-			$bt->addToProperty("class", $class);
316
+		if(isset($class)) {
317
+					$bt->addToProperty("class", $class);
318
+		}
316 319
 		return $bt;
317 320
 	}
318 321
 
Please login to merge, or discard this patch.