Passed
Push — master ( 31fed0...fdcf95 )
by Jean-Christophe
02:44
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=false, $emoji=null) {
68
-		if($before)
68
+		if ($before)
69 69
 			$this->wrap($label);
70 70
 		else
71 71
 			$this->wrap("", $label);
72
-		if($emoji!=null)
72
+		if ($emoji!=null)
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=false, $emoji=null) {
68
-		if($before)
69
-			$this->wrap($label);
70
-		else
71
-			$this->wrap("", $label);
72
-		if($emoji!=null)
73
-			$this->setEmoji($emoji);
69
+		if($before) {
70
+					$this->wrap($label);
71
+		} else {
72
+					$this->wrap("", $label);
73
+		}
74
+		if($emoji!=null) {
75
+					$this->setEmoji($emoji);
76
+		}
74 77
 		return $this;
75 78
 	}
76 79
 
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlListItem.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -8,23 +8,23 @@  discard block
 block discarded – undo
8 8
 
9 9
 	protected $image;
10 10
 
11
-	public function __construct($identifier, $content = NULL) {
11
+	public function __construct($identifier, $content=NULL) {
12 12
 		parent::__construct($identifier, "item", $content);
13 13
 	}
14 14
 
15 15
 	protected function initContent($content) {
16 16
 		if (\is_array($content)) {
17
-			if (JArray::isAssociative($content) === false) {
18
-				$icon = $content[0] ?? null;
19
-				$title = $content[1] ?? null;
20
-				$desc = $content[2] ?? null;
17
+			if (JArray::isAssociative($content)===false) {
18
+				$icon=$content[0] ?? null;
19
+				$title=$content[1] ?? null;
20
+				$desc=$content[2] ?? null;
21 21
 			} else {
22
-				$icon = $content["icon"] ?? null;
23
-				$image = $content["image"] ?? null;
24
-				$title = $content["title"] ?? null;
25
-				$header = $content["header"] ?? null;
26
-				$desc = $content["description"] ?? null;
27
-				$items = $content["items"] ?? null;
22
+				$icon=$content["icon"] ?? null;
23
+				$image=$content["image"] ?? null;
24
+				$title=$content["title"] ?? null;
25
+				$header=$content["header"] ?? null;
26
+				$desc=$content["description"] ?? null;
27
+				$items=$content["items"] ?? null;
28 28
 			}
29 29
 			if (isset($icon)) {
30 30
 				$this->setIcon($icon);
@@ -45,12 +45,12 @@  discard block
 block discarded – undo
45 45
 		}
46 46
 	}
47 47
 
48
-	public function addList($items = array(), $ordered = false) {
49
-		$list = new HtmlList("", $items);
48
+	public function addList($items=array(), $ordered=false) {
49
+		$list=new HtmlList("", $items);
50 50
 		if ($ordered)
51 51
 			$list->setOrdered();
52 52
 		$list->setClass("list");
53
-		$this->content["list"] = $list;
53
+		$this->content["list"]=$list;
54 54
 		return $list;
55 55
 	}
56 56
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,9 @@
 block discarded – undo
47 47
 
48 48
 	public function addList($items = array(), $ordered = false) {
49 49
 		$list = new HtmlList("", $items);
50
-		if ($ordered)
51
-			$list->setOrdered();
50
+		if ($ordered) {
51
+					$list->setOrdered();
52
+		}
52 53
 		$list->setClass("list");
53 54
 		$this->content["list"] = $list;
54 55
 		return $list;
Please login to merge, or discard this patch.