Passed
Push — master ( fdcf95...dcc4d7 )
by Jean-Christophe
03:10
created
Ajax/common/html/html5/HtmlInput.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,8 +18,9 @@  discard block
 block discarded – undo
18 18
 	}
19 19
 
20 20
 	public function setValue($value) {
21
-		if (isset($value))
22
-			$this->setProperty("value", $value);
21
+		if (isset($value)) {
22
+					$this->setProperty("value", $value);
23
+		}
23 24
 		return $this;
24 25
 	}
25 26
 
@@ -34,16 +35,18 @@  discard block
 block discarded – undo
34 35
 	}
35 36
 
36 37
 	public function setPlaceholder($value) {
37
-		if (JString::isNotNull($value))
38
-			$this->_placeholder = $value;
38
+		if (JString::isNotNull($value)) {
39
+					$this->_placeholder = $value;
40
+		}
39 41
 		return $this;
40 42
 	}
41 43
 
42 44
 	public function compile(JsUtils $js = NULL, &$view = NULL) {
43 45
 		$value = $this->_placeholder;
44 46
 		if (JString::isNull($value)) {
45
-			if (JString::isNotNull($this->getProperty("name")))
46
-				$value = \ucfirst($this->getProperty("name"));
47
+			if (JString::isNotNull($this->getProperty("name"))) {
48
+							$value = \ucfirst($this->getProperty("name"));
49
+			}
47 50
 		}
48 51
 		$this->setProperty("placeholder", $value);
49 52
 		return parent::compile($js, $view);
Please login to merge, or discard this patch.