Passed
Push — master ( a7d880...5a9be2 )
by Jean-Christophe
03:16
created
Ajax/semantic/html/base/HtmlSemDoubleElement.php 1 patch
Braces   +15 added lines, -10 removed lines patch added patch discarded remove patch
@@ -49,8 +49,9 @@  discard block
 block discarded – undo
49 49
 	 * @param string $popupEvent
50 50
 	 */
51 51
 	public function setPopupAttributes($variation = NULL, $popupEvent = NULL) {
52
-		if (isset($this->_popup))
53
-			$this->_popup->setAttributes($variation, $popupEvent);
52
+		if (isset($this->_popup)) {
53
+					$this->_popup->setAttributes($variation, $popupEvent);
54
+		}
54 55
 	}
55 56
 
56 57
 	/**
@@ -109,8 +110,9 @@  discard block
 block discarded – undo
109 110
 		$labelO = $label;
110 111
 		if (\is_object($label) === false) {
111 112
 			$labelO = new HtmlLabel("label-" . $this->identifier, $label);
112
-			if (isset($icon))
113
-				$labelO->addIcon($icon);
113
+			if (isset($icon)) {
114
+							$labelO->addIcon($icon);
115
+			}
114 116
 		} else {
115 117
 			$labelO->addToPropertyCtrl("class", "label", array(
116 118
 				"label"
@@ -141,10 +143,12 @@  discard block
 block discarded – undo
141 143
 	 * @return HtmlSemDoubleElement
142 144
 	 */
143 145
 	public function asLink($href = NULL, $target = NULL) {
144
-		if (isset($href))
145
-			$this->setProperty("href", $href);
146
-		if (isset($target))
147
-			$this->setProperty("target", $target);
146
+		if (isset($href)) {
147
+					$this->setProperty("href", $href);
148
+		}
149
+		if (isset($target)) {
150
+					$this->setProperty("target", $target);
151
+		}
148 152
 		return $this->setTagName("a");
149 153
 	}
150 154
 
@@ -156,8 +160,9 @@  discard block
 block discarded – undo
156 160
 	 */
157 161
 	public function jsShowDimmer($show = true) {
158 162
 		$status = "hide";
159
-		if ($show === true)
160
-			$status = "show";
163
+		if ($show === true) {
164
+					$status = "show";
165
+		}
161 166
 		return '$("#.' . $this->identifier . ').dimmer("' . $status . '");';
162 167
 	}
163 168
 
Please login to merge, or discard this patch.