Completed
Push — master ( b92773...4d236d )
by Jean-Christophe
03:15
created
Ajax/semantic/widgets/base/FieldAsTrait.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,9 @@
 block discarded – undo
21 21
 
22 22
 	public function fieldAsImage($index,$size=Size::SMALL,$circular=false){
23 23
 		$this->setValueFunction($index,function($img) use($size,$circular){
24
-			$image=new HtmlImage($this->_getFieldIdentifier("image"),$img);$image->setSize($size);if($circular)$image->setCircular();
24
+			$image=new HtmlImage($this->_getFieldIdentifier("image"),$img);$image->setSize($size);if($circular) {
25
+				$image->setCircular();
26
+			}
25 27
 			return $image;
26 28
 		}
27 29
 		);
Please login to merge, or discard this patch.
Ajax/semantic/widgets/datatable/DataTable.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -62,18 +62,21 @@  discard block
 block discarded – undo
62 62
 
63 63
 		$table->setRowCount(0, \sizeof($captions));
64 64
 		$table->setHeaderValues($captions);
65
-		if(isset($this->_compileParts))
66
-			$table->setCompileParts($this->_compileParts);
65
+		if(isset($this->_compileParts)) {
66
+					$table->setCompileParts($this->_compileParts);
67
+		}
67 68
 		if(isset($this->_searchField)){
68
-			if(isset($js))
69
-				$this->_searchField->postOn("change", $this->_urls,"{'s':$(this).val()}","-#".$this->identifier." tbody",["preventDefault"=>false]);
69
+			if(isset($js)) {
70
+							$this->_searchField->postOn("change", $this->_urls,"{'s':$(this).val()}","-#".$this->identifier." tbody",["preventDefault"=>false]);
71
+			}
70 72
 		}
71 73
 
72 74
 		$this->_generateContent($table);
73 75
 
74 76
 		if($this->_hasCheckboxes){
75
-			if($table->hasPart("thead"))
76
-				$table->getHeader()->getCell(0, 0)->addToProperty("class","no-sort");
77
+			if($table->hasPart("thead")) {
78
+							$table->getHeader()->getCell(0, 0)->addToProperty("class","no-sort");
79
+			}
77 80
 		}
78 81
 
79 82
 		if(isset($this->_pagination) && $this->_pagination->getVisible()){
@@ -307,8 +310,9 @@  discard block
 block discarded – undo
307 310
 	private function getDefaultButton($icon,$class=null){
308 311
 		$bt=$this->getFieldButton("");
309 312
 		$bt->asIcon($icon);
310
-		if(isset($class))
311
-			$bt->addToProperty("class", $class);
313
+		if(isset($class)) {
314
+					$bt->addToProperty("class", $class);
315
+		}
312 316
 		return $bt;
313 317
 	}
314 318
 
Please login to merge, or discard this patch.