Completed
Push — master ( 49f42f...848ec5 )
by Jean-Christophe
03:06
created
Ajax/semantic/html/collections/form/traits/FieldTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@
 block discarded – undo
6 6
 
7 7
 trait CheckboxTrait {
8 8
 
9
+	/**
10
+	 * @param string $name
11
+	 */
9 12
 	public abstract function addToPropertyCtrl($name, $value, $typeCtrl);
10 13
 
11 14
 	public function setType($checkboxType) {
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/HtmlFormInput.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,9 @@
 block discarded – undo
10 10
 	use TextFieldsTrait,FieldTrait;
11 11
 
12 12
 	public function __construct($identifier, $label=NULL,$type="text",$value=NULL,$placeholder=NULL) {
13
-		if(!isset($placeholder) && $type==="text")
14
-			$placeholder=$label;
13
+		if(!isset($placeholder) && $type==="text") {
14
+					$placeholder=$label;
15
+		}
15 16
 		parent::__construct("field-".$identifier, new HtmlInput($identifier,$type,$value,$placeholder), $label);
16 17
 	}
17 18
 }
18 19
\ No newline at end of file
Please login to merge, or discard this patch.