Passed
Push — master ( b839bb...74ec22 )
by Jean-Christophe
02:03
created
Ajax/semantic/html/elements/HtmlEmoji.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,22 +54,22 @@
 block discarded – undo
54 54
 	 * @param string $target
55 55
 	 * @return HtmlEmoji
56 56
 	 */
57
-	public function asLink($href=NULL,$target=NULL) {
57
+	public function asLink($href=NULL, $target=NULL) {
58 58
 		if (isset($href)) {
59 59
 			$_target="";
60
-			if(isset($target))
60
+			if (isset($target))
61 61
 				$_target="target='{$target}'";
62
-			$this->wrap("<a href='" . $href . "' {$_target}>", "</a>");
62
+			$this->wrap("<a href='".$href."' {$_target}>", "</a>");
63 63
 		}
64 64
 		return $this->addToProperty("class", "link");
65 65
 	}
66 66
 
67 67
 	public function addLabel($label, $before, $emoji) {
68
-		if($before)
68
+		if ($before)
69 69
 			$this->wrap($label);
70 70
 		else
71 71
 			$this->wrap("", $label);
72
-		if(isset($emoji))
72
+		if (isset($emoji))
73 73
 			$this->setEmoji($emoji);
74 74
 		return $this;
75 75
 	}
Please login to merge, or discard this patch.
Braces   +11 added lines, -8 removed lines patch added patch discarded remove patch
@@ -57,20 +57,23 @@
 block discarded – undo
57 57
 	public function asLink($href=NULL,$target=NULL) {
58 58
 		if (isset($href)) {
59 59
 			$_target="";
60
-			if(isset($target))
61
-				$_target="target='{$target}'";
60
+			if(isset($target)) {
61
+							$_target="target='{$target}'";
62
+			}
62 63
 			$this->wrap("<a href='" . $href . "' {$_target}>", "</a>");
63 64
 		}
64 65
 		return $this->addToProperty("class", "link");
65 66
 	}
66 67
 
67 68
 	public function addLabel($label, $before, $emoji) {
68
-		if($before)
69
-			$this->wrap($label);
70
-		else
71
-			$this->wrap("", $label);
72
-		if(isset($emoji))
73
-			$this->setEmoji($emoji);
69
+		if($before) {
70
+					$this->wrap($label);
71
+		} else {
72
+					$this->wrap("", $label);
73
+		}
74
+		if(isset($emoji)) {
75
+					$this->setEmoji($emoji);
76
+		}
74 77
 		return $this;
75 78
 	}
76 79
 
Please login to merge, or discard this patch.