Completed
Push — master ( 848ec5...d8452d )
by Jean-Christophe
02:59
created
Ajax/semantic/html/collections/form/HtmlFormInput.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,15 +10,17 @@
 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
 	public function getDataField(){
19 20
 		$field= $this->getField();
20
-		if($field instanceof HtmlInput)
21
-			$field=$field->getField();
21
+		if($field instanceof HtmlInput) {
22
+					$field=$field->getField();
23
+		}
22 24
 		return $field;
23 25
 	}
24 26
 }
25 27
\ No newline at end of file
Please login to merge, or discard this patch.