Passed
Push — master ( a57f3d...497376 )
by Jean-Christophe
02:17
created
Ajax/semantic/html/collections/form/HtmlFormInput.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,16 +14,18 @@
 block discarded – undo
14 14
 	const TOGGLE_INTERVAL = 2;
15 15
 
16 16
 	public function __construct($identifier, $label = NULL, $type = "text", $value = NULL, $placeholder = NULL) {
17
-		if (! isset($placeholder) && $type === "text")
18
-			$placeholder = $label;
17
+		if (! isset($placeholder) && $type === "text") {
18
+					$placeholder = $label;
19
+		}
19 20
 		parent::__construct("field-" . $identifier, new HtmlInput($identifier, $type, $value, $placeholder), $label);
20 21
 		$this->_identifier = $identifier;
21 22
 	}
22 23
 
23 24
 	public function getDataField() {
24 25
 		$field = $this->getField();
25
-		if ($field instanceof HtmlInput)
26
-			$field = $field->getDataField();
26
+		if ($field instanceof HtmlInput) {
27
+					$field = $field->getDataField();
28
+		}
27 29
 		return $field;
28 30
 	}
29 31
 
Please login to merge, or discard this patch.