Completed
Push — master ( 189ad5...73e21a )
by Jean-Christophe
04:04
created
Ajax/semantic/html/elements/HtmlLabel.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,9 @@  discard block
 block discarded – undo
14 14
 	public function __construct($identifier, $caption="", $icon=NULL, $tagName="div") {
15 15
 		parent::__construct($identifier, $tagName, "ui label");
16 16
 		$this->content=$caption;
17
-		if (isset($icon))
18
-			$this->addIcon($icon);
17
+		if (isset($icon)) {
18
+					$this->addIcon($icon);
19
+		}
19 20
 	}
20 21
 
21 22
 	/**
@@ -49,8 +50,9 @@  discard block
 block discarded – undo
49 50
 	 * @return \Ajax\semantic\html\elements\HtmlLabel
50 51
 	 */
51 52
 	public function asLink($href=NULL) {
52
-		if (isset($href))
53
-			$this->setProperty("href", $href);
53
+		if (isset($href)) {
54
+					$this->setProperty("href", $href);
55
+		}
54 56
 		return $this->setTagName("a");
55 57
 	}
56 58
 
Please login to merge, or discard this patch.