Completed
Push — master ( 73e21a...085edf )
by Jean-Christophe
04:37
created
Ajax/semantic/html/content/HtmlListItem.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 				$icon=@$content[0];
18 18
 				$title=@$content[1];
19 19
 				$desc=@$content[2];
20
-			}else{
20
+			} else{
21 21
 				$icon=@$content["icon"];
22 22
 				$image=@$content["image"];
23 23
 				$title=@$content["title"];
@@ -33,13 +33,13 @@  discard block
 block discarded – undo
33 33
 			}
34 34
 			if(isset($title)===true){
35 35
 				$this->setTitle($title,$desc);
36
-			}elseif (isset($header)===true){
36
+			} elseif (isset($header)===true){
37 37
 				$this->setTitle($header,$desc,"header");
38 38
 			}
39 39
 			if(isset($items)===true){
40 40
 				$this->addList($items);
41 41
 			}
42
-		}else{
42
+		} else{
43 43
 			$this->setContent($content);
44 44
 		}
45 45
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlAbsractItem.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,9 @@  discard block
 block discarded – undo
60 60
 
61 61
 	public function asLink($href=NULL,$part=NULL){
62 62
 		$this->setTagName("a");
63
-		if(isset($href))
64
-			$this->setProperty("href", $href);
63
+		if(isset($href)) {
64
+					$this->setProperty("href", $href);
65
+		}
65 66
 		return $this;
66 67
 	}
67 68
 
@@ -72,8 +73,9 @@  discard block
 block discarded – undo
72 73
 	 * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::compile()
73 74
 	 */
74 75
 	public function compile(JsUtils $js=NULL, $view=NULL) {
75
-		if(\is_array($this->content))
76
-			$this->content=JArray::sortAssociative($this->content, [ "icon","image","content" ]);
76
+		if(\is_array($this->content)) {
77
+					$this->content=JArray::sortAssociative($this->content, [ "icon","image","content" ]);
78
+		}
77 79
 		return parent::compile($js, $view);
78 80
 	}
79 81
 }
80 82
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/php/phalcon/JsUtils.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,9 @@
 block discarded – undo
56 56
 		if(\sizeof($params)>0 || \strtolower($action)!="index" ){
57 57
 			$items[]=$action;
58 58
 			foreach ($params as $p){
59
-				if(\is_object($p)===false)
60
-					$items[]=$p;
59
+				if(\is_object($p)===false) {
60
+									$items[]=$p;
61
+				}
61 62
 			}
62 63
 		}
63 64
 		return $items;
Please login to merge, or discard this patch.