Completed
Push — master ( 012895...9e0835 )
by Jean-Christophe
03:33
created
Ajax/semantic/html/collections/form/HtmlFormRadio.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,9 +14,11 @@
 block discarded – undo
14 14
 		parent::__construct($identifier, $name,$label,$value,$type);
15 15
 		$this->_input->getField()->setProperty("type", "radio");
16 16
 		$this->_input->setClass("ui radio checkbox");
17
-		if(isset($name))
18
-			$this->_input->getField()->setProperty("name", $name);
19
-		if(isset($type))
20
-			$this->setType($type);
17
+		if(isset($name)) {
18
+					$this->_input->getField()->setProperty("name", $name);
19
+		}
20
+		if(isset($type)) {
21
+					$this->setType($type);
22
+		}
21 23
 	}
22 24
 }
23 25
\ 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
@@ -12,7 +12,8 @@
 block discarded – undo
12 12
 	public function __construct($identifier, $label=NULL,$value=NULL,$type=NULL) {
13 13
 		parent::__construct($identifier, NULL,$label,$value,$type);
14 14
 		$this->_input->setClass("ui checkbox");
15
-		if(isset($type))
16
-			$this->setType($type);
15
+		if(isset($type)) {
16
+					$this->setType($type);
17
+		}
17 18
 	}
18 19
 }
19 20
\ No newline at end of file
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
@@ -9,8 +9,9 @@
 block discarded – undo
9 9
 	use TextFieldsTrait;
10 10
 
11 11
 	public function __construct($identifier, $label=NULL,$type="text",$value=NULL,$placeholder=NULL) {
12
-		if(!isset($placeholder) && $type==="text")
13
-			$placeholder=$label;
12
+		if(!isset($placeholder) && $type==="text") {
13
+					$placeholder=$label;
14
+		}
14 15
 		parent::__construct("field-".$identifier, new HtmlInput($identifier,$type,$value,$placeholder), $label);
15 16
 	}
16 17
 
Please login to merge, or discard this patch.