@@ -14,16 +14,18 @@ |
||
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 |