Completed
Push — master ( b4ccca...781bd5 )
by Jean-Christophe
03:50
created
Ajax/semantic/html/content/card/HtmlCardHeaderContent.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,9 @@
 block discarded – undo
18 18
 			foreach ( $metas as $meta ) {
19 19
 				$this->addMeta($meta);
20 20
 			}
21
-		} else
22
-			$this->addMeta($metas);
21
+		} else {
22
+					$this->addMeta($metas);
23
+		}
23 24
 		if (isset($description)) {
24 25
 			$this->setDescription($description);
25 26
 		}
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/HtmlBreadcrumb.php 1 patch
Braces   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -100,8 +100,9 @@  discard block
 block discarded – undo
100 100
 		if (\sizeof($params) > 0 || \strtolower($action) != "index") {
101 101
 			$items[]=$action;
102 102
 			foreach ( $params as $p ) {
103
-				if (\is_object($p) === false)
104
-					$items[]=$p;
103
+				if (\is_object($p) === false) {
104
+									$items[]=$p;
105
+				}
105 106
 			}
106 107
 		}
107 108
 		return $this->addItems($items);
@@ -175,8 +176,9 @@  discard block
 block discarded – undo
175 176
 
176 177
 	public function _ajaxOn($operation, $event, $url, $responseElement="", $parameters=array()) {
177 178
 		foreach ( $this->content as $element ) {
178
-			if ($element->getProperty($this->attr) != NULL)
179
-				$element->_ajaxOn($operation, $event, $url, $responseElement, $parameters);
179
+			if ($element->getProperty($this->attr) != NULL) {
180
+							$element->_ajaxOn($operation, $event, $url, $responseElement, $parameters);
181
+			}
180 182
 		}
181 183
 		return $this;
182 184
 	}
@@ -190,9 +192,9 @@  discard block
 block discarded – undo
190 192
 	protected function createItem($value) {
191 193
 		$count=$this->count();
192 194
 		$itemO=new HtmlSemDoubleElement("item-" . $this->identifier . "-" . $count, "a", "section");
193
-		if (\is_array($value))
194
-			$itemO->fromArray($value);
195
-		else {
195
+		if (\is_array($value)) {
196
+					$itemO->fromArray($value);
197
+		} else {
196 198
 			$itemO->setContent($value);
197 199
 			$itemO->setProperty($this->attr, $this->getHref($count));
198 200
 		}
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlIcon.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,8 +109,9 @@  discard block
 block discarded – undo
109 109
 
110 110
 	public function setCircular($inverted=false) {
111 111
 		$invertedStr="";
112
-		if ($inverted !== false)
113
-			$invertedStr=" inverted";
112
+		if ($inverted !== false) {
113
+					$invertedStr=" inverted";
114
+		}
114 115
 		return $this->addToMember($this->attributes, "circular" . $invertedStr);
115 116
 	}
116 117
 
@@ -133,8 +134,9 @@  discard block
 block discarded – undo
133 134
 	 */
134 135
 	public function setBordered($inverted=false) {
135 136
 		$invertedStr="";
136
-		if ($inverted !== false)
137
-			$invertedStr=" inverted";
137
+		if ($inverted !== false) {
138
+					$invertedStr=" inverted";
139
+		}
138 140
 		return $this->addToMember($this->attributes, "bordered" . $invertedStr);
139 141
 	}
140 142
 
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlImage.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,8 +11,9 @@  discard block
 block discarded – undo
11 11
 	public function __construct($identifier, $src="", $alt="", $size=NULL) {
12 12
 		$image=new HtmlImg("img-", $src, $alt);
13 13
 		parent::__construct($identifier, "div", "ui image", $image);
14
-		if (isset($size))
15
-			$this->setSize($size);
14
+		if (isset($size)) {
15
+					$this->setSize($size);
16
+		}
16 17
 	}
17 18
 
18 19
 	public function setCircular() {
@@ -20,8 +21,9 @@  discard block
 block discarded – undo
20 21
 	}
21 22
 
22 23
 	public function asAvatar($caption=NULL) {
23
-		if (isset($caption))
24
-			$this->wrap("", $caption);
24
+		if (isset($caption)) {
25
+					$this->wrap("", $caption);
26
+		}
25 27
 		return $this->addToProperty("class", "avatar");
26 28
 	}
27 29
 
Please login to merge, or discard this patch.
Ajax/common/html/PropertyWrapper.php 1 patch
Braces   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,8 +25,9 @@  discard block
 block discarded – undo
25 25
 
26 26
 	private static function containsElement($input) {
27 27
 		foreach ( $input as $v ) {
28
-			if (\is_object($v) === true || \is_array($v))
29
-				return true;
28
+			if (\is_object($v) === true || \is_array($v)) {
29
+							return true;
30
+			}
30 31
 		}
31 32
 		return false;
32 33
 	}
@@ -44,12 +45,13 @@  discard block
 block discarded – undo
44 45
 
45 46
 	public static function wrapObjects($input, $js=NULL, $separator=' ', $valueQuote='"') {
46 47
 		return implode($separator, array_map(function ($v) use($js, $separator, $valueQuote) {
47
-			if (is_object($v))
48
-				return $v->compile($js);
49
-			elseif (\is_array($v)) {
48
+			if (is_object($v)) {
49
+							return $v->compile($js);
50
+			} elseif (\is_array($v)) {
50 51
 				return self::wrap($v, $js, $separator, $valueQuote);
51
-			} else
52
-				return $v;
52
+			} else {
53
+							return $v;
54
+			}
53 55
 		}, $input));
54 56
 	}
55 57
 }
56 58
\ No newline at end of file
Please login to merge, or discard this patch.