Completed
Push — master ( 3555a5...e61355 )
by Jean-Christophe
03:33
created
Ajax/semantic/html/collections/HtmlTable.php 1 patch
Braces   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -194,8 +194,9 @@  discard block
 block discarded – undo
194 194
 	}
195 195
 
196 196
 	public function setBasic($very=false) {
197
-		if ($very)
198
-			$this->addToPropertyCtrl("class", "very", array ("very" ));
197
+		if ($very) {
198
+					$this->addToPropertyCtrl("class", "very", array ("very" ));
199
+		}
199 200
 		return $this->addToPropertyCtrl("class", "basic", array ("basic" ));
200 201
 	}
201 202
 
@@ -260,7 +261,7 @@  discard block
 block discarded – undo
260 261
 		if(\sizeof($this->_compileParts)<3){
261 262
 			$this->_template="%content%";
262 263
 			$this->refresh();
263
-		}else{
264
+		} else{
264 265
 			if ($this->propertyContains("class", "sortable")) {
265 266
 				$this->addEvent("execute", "$('#" . $this->identifier . "').tablesort();");
266 267
 			}
@@ -300,8 +301,9 @@  discard block
 block discarded – undo
300 301
 
301 302
 	public function run(JsUtils $js){
302 303
 		$result= parent::run($js);
303
-		if(isset($this->_footer))
304
-			$this->_footer->run($js);
304
+		if(isset($this->_footer)) {
305
+					$this->_footer->run($js);
306
+		}
305 307
 		return $result;
306 308
 	}
307 309
 
Please login to merge, or discard this patch.
Ajax/semantic/html/base/traits/MenuItemTrait.php 1 patch
Braces   +14 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,14 +11,15 @@  discard block
 block discarded – undo
11 11
 	public function setContent($content){
12 12
 		if($content==="-"){
13 13
 			$this->asDivider();
14
-		}elseif($content==="-search-"){
14
+		} elseif($content==="-search-"){
15 15
 			$values=\explode(",",$content,-1);
16 16
 			$this->asSearchInput(JArray::getDefaultValue($values, 0, "Search..."),JArray::getDefaultValue($values, 1, "search"));
17
-		}elseif(JString::startswith($content, "-")){
17
+		} elseif(JString::startswith($content, "-")){
18 18
 			$content=\ltrim($content,"-");
19 19
 			$this->asHeader($content);
20
-		}else
21
-			parent::setContent($content);
20
+		} else {
21
+					parent::setContent($content);
22
+		}
22 23
 		return $this;
23 24
 	}
24 25
 
@@ -30,11 +31,13 @@  discard block
 block discarded – undo
30 31
 	public function asSearchInput($placeholder=NULL,$icon=NULL){
31 32
 		$this->setClass("ui icon search input");
32 33
 		$input=new HtmlInput("search-".$this->identifier);
33
-		if(isset($placeholder))
34
-			$input->setProperty("placeholder", $placeholder);
34
+		if(isset($placeholder)) {
35
+					$input->setProperty("placeholder", $placeholder);
36
+		}
35 37
 			$this->content=$input;
36
-			if(isset($icon))
37
-				$this->addIcon($icon);
38
+			if(isset($icon)) {
39
+							$this->addIcon($icon);
40
+			}
38 41
 				return $this;
39 42
 	}
40 43
 
@@ -57,8 +60,9 @@  discard block
 block discarded – undo
57 60
 		$this->setClass("header");
58 61
 		$this->tagName="div";
59 62
 		$this->content=$caption;
60
-		if(isset($icon))
61
-			$this->addIcon($icon,Direction::LEFT);
63
+		if(isset($icon)) {
64
+					$this->addIcon($icon,Direction::LEFT);
65
+		}
62 66
 			return $this;
63 67
 	}
64 68
 
Please login to merge, or discard this patch.