Completed
Push — master ( 916f6f...ea2a7d )
by Jean-Christophe
03:42
created
Ajax/semantic/html/modules/checkbox/AbstractCheckbox.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,9 @@  discard block
 block discarded – undo
13 13
 		$field=new \Ajax\common\html\html5\HtmlInput($identifier, $inputType, $value);
14 14
 		$field->setProperty("name", $name);
15 15
 		$this->setField($field);
16
-		if (isset($label))
17
-			$this->setLabel($label);
16
+		if (isset($label)) {
17
+					$this->setLabel($label);
18
+		}
18 19
 	}
19 20
 
20 21
 	public function setType($checkboxType) {
@@ -40,8 +41,9 @@  discard block
 block discarded – undo
40 41
 	 * @return mixed
41 42
 	 */
42 43
 	public function getLabel() {
43
-		if (\array_key_exists("label", $this->content))
44
-			return $this->content["label"];
44
+		if (\array_key_exists("label", $this->content)) {
45
+					return $this->content["label"];
46
+		}
45 47
 	}
46 48
 
47 49
 	/**
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlInput.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,8 +33,9 @@  discard block
 block discarded – undo
33 33
 		$labelO=$label;
34 34
 		if (\is_object($label)===false) {
35 35
 			$labelO=new HtmlLabel("label-".$this->identifier, $label);
36
-			if (isset($icon))
37
-				$labelO->addIcon($icon);
36
+			if (isset($icon)) {
37
+							$labelO->addIcon($icon);
38
+			}
38 39
 		} else {
39 40
 			$labelO->addToPropertyCtrl("class", "label", array ("label" ));
40 41
 		}
@@ -51,8 +52,9 @@  discard block
 block discarded – undo
51 52
 		$actionO=$action;
52 53
 		if (\is_object($action)===false) {
53 54
 			$actionO=new HtmlButton("action-".$this->identifier, $action);
54
-			if (isset($icon))
55
-				$actionO->addIcon($icon, true, $labeled);
55
+			if (isset($icon)) {
56
+							$actionO->addIcon($icon, true, $labeled);
57
+			}
56 58
 		}
57 59
 		$this->addToProperty("class", $direction." action");
58 60
 		$this->addContent($actionO, \strstr($direction, Direction::LEFT)!==false);
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlList.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,9 @@
 block discarded – undo
21 21
 		if (\is_array($value)) {
22 22
 			$item=new HtmlListItem("item-".$this->identifier."-".$count, $value[0]);
23 23
 			$item->addIcon($value[1]);
24
-		} else
25
-			$item=new HtmlListItem("item-".$this->identifier."-".$count, $value);
24
+		} else {
25
+					$item=new HtmlListItem("item-".$this->identifier."-".$count, $value);
26
+		}
26 27
 		return $item;
27 28
 	}
28 29
 
Please login to merge, or discard this patch.