Completed
Push — master ( 73e21a...085edf )
by Jean-Christophe
04:37
created
Ajax/semantic/html/elements/HtmlButton.php 1 patch
Braces   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
 	}
56 56
 
57 57
 	public function setFocusable($value=true) {
58
-		if ($value === true)
59
-			$this->setProperty("tabindex", "0");
60
-		else {
58
+		if ($value === true) {
59
+					$this->setProperty("tabindex", "0");
60
+		} else {
61 61
 			$this->removeProperty("tabindex");
62 62
 		}
63 63
 		return $this;
@@ -109,8 +109,9 @@  discard block
 block discarded – undo
109 109
 		$this->content=new HtmlButton("button-" . $this->identifier, $this->content);
110 110
 		$this->content->setTagName("div");
111 111
 		$label=new HtmlLabel("label-" . $this->identifier, $label, "a");
112
-		if(isset($icon))
113
-			$label->addIcon($icon);
112
+		if(isset($icon)) {
113
+					$label->addIcon($icon);
114
+		}
114 115
 		$label->setBasic();
115 116
 		$this->addContent($label, $before);
116 117
 		return $label;
@@ -185,8 +186,9 @@  discard block
 block discarded – undo
185 186
 	}
186 187
 
187 188
 	public static function social($identifier, $social, $value=NULL) {
188
-		if ($value === NULL)
189
-			$value=\ucfirst($social);
189
+		if ($value === NULL) {
190
+					$value=\ucfirst($social);
191
+		}
190 192
 		$return=new HtmlButton($identifier, $value);
191 193
 		$return->addIcon($social);
192 194
 		return $return->addToPropertyCtrl("class", $social, Social::getConstants());
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/html5/HtmlImg.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,9 @@
 block discarded – undo
14 14
 	}
15 15
 
16 16
 	public function asAvatar($caption=NULL) {
17
-		if (isset($caption))
18
-			$this->wrap("", $caption);
17
+		if (isset($caption)) {
18
+					$this->wrap("", $caption);
19
+		}
19 20
 			return $this->addToProperty("class", "avatar");
20 21
 	}
21 22
 }
22 23
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/HtmlSemDoubleElement.php 1 patch
Braces   +15 added lines, -10 removed lines patch added patch discarded remove patch
@@ -31,8 +31,9 @@  discard block
 block discarded – undo
31 31
 	}
32 32
 
33 33
 	public function setPopupAttributes($variation=NULL, $popupEvent=NULL) {
34
-		if (isset($this->_popup))
35
-			$this->_popup->setAttributes($variation, $popupEvent);
34
+		if (isset($this->_popup)) {
35
+					$this->_popup->setAttributes($variation, $popupEvent);
36
+		}
36 37
 	}
37 38
 
38 39
 	public function addPopup($title="", $content="", $variation=NULL, $params=array()) {
@@ -59,8 +60,9 @@  discard block
 block discarded – undo
59 60
 		$labelO=$label;
60 61
 		if (\is_object($label) === false) {
61 62
 			$labelO=new HtmlLabel("label-" . $this->identifier, $label);
62
-			if (isset($icon))
63
-				$labelO->addIcon($icon);
63
+			if (isset($icon)) {
64
+							$labelO->addIcon($icon);
65
+			}
64 66
 		} else {
65 67
 			$labelO->addToPropertyCtrl("class", "label", array ("label" ));
66 68
 		}
@@ -79,21 +81,24 @@  discard block
 block discarded – undo
79 81
 	 * @return \Ajax\semantic\html\base\HtmlSemDoubleElement
80 82
 	 */
81 83
 	public function asLink($href=NULL) {
82
-		if (isset($href))
83
-			$this->setProperty("href", $href);
84
+		if (isset($href)) {
85
+					$this->setProperty("href", $href);
86
+		}
84 87
 		return $this->setTagName("a");
85 88
 	}
86 89
 
87 90
 	public function jsShowDimmer($show=true) {
88 91
 		$status="hide";
89
-		if ($show === true)
90
-			$status="show";
92
+		if ($show === true) {
93
+					$status="show";
94
+		}
91 95
 		return '$("#.' . $this->identifier . ').dimmer("' . $status . '");';
92 96
 	}
93 97
 
94 98
 	public function compile(JsUtils $js=NULL, $view=NULL) {
95
-		if (isset($this->_popup))
96
-			$this->_popup->compile();
99
+		if (isset($this->_popup)) {
100
+					$this->_popup->compile();
101
+		}
97 102
 		return parent::compile($js, $view);
98 103
 	}
99 104
 
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlMenuItem.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 				$title=JArray::getValue($content, "title",1);
19 19
 				$desc=JArray::getValue($content, "description",2);
20 20
 				$status=JArray::getValue($content, "status",3);
21
-			}else{
21
+			} else{
22 22
 				$icon=@$content["icon"];
23 23
 				$title=@$content["title"];
24 24
 				$desc=@$content["description"];
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 			if(isset($title)===true){
34 34
 				$this->setTitle($title,$desc);
35 35
 			}
36
-		}else{
36
+		} else{
37 37
 			$this->setContent($content);
38 38
 		}
39 39
 	}
Please login to merge, or discard this patch.
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.