Completed
Push — master ( b49918...3cf661 )
by Jean-Christophe
03:33
created
Ajax/semantic/html/collections/form/FieldsTrait.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,8 @@
 block discarded – undo
8 8
 		if(\is_array($value)){
9 9
 			$itemO=new HtmlFormInput(JArray::getDefaultValue($value, "id",""),JArray::getDefaultValue($value, "label",null),JArray::getDefaultValue($value, "type", "text"),JArray::getDefaultValue($value, "value",""),JArray::getDefaultValue($value, "placeholder",JArray::getDefaultValue($value, "label",null)));
10 10
 			return $itemO;
11
-		}else
12
-			return new HtmlFormInput($value);
11
+		} else {
12
+					return new HtmlFormInput($value);
13
+		}
13 14
 	}
14 15
 }
15 16
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/HtmlFormCheckbox.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
 			$label->setProperty("tabindex",0);
22 22
 		}
23 23
 		$this->setClass("ui checkbox");
24
-		if(isset($type))
25
-			$this->setType($type);
24
+		if(isset($type)) {
25
+					$this->setType($type);
26
+		}
26 27
 		$this->wrap("<div class='field'>","</div>");
27 28
 	}
28 29
 
Please login to merge, or discard this patch.