Completed
Push — master ( 8b7375...189ad5 )
by Jean-Christophe
03:49
created
Ajax/semantic/html/views/HtmlCard.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,9 @@
 block discarded – undo
36 36
 
37 37
 	private function getPart($part, $index=NULL) {
38 38
 		if (\array_key_exists($part, $this->content)) {
39
-			if (isset($index))
40
-				return $this->content[$part][$index];
39
+			if (isset($index)) {
40
+							return $this->content[$part][$index];
41
+			}
41 42
 			return $this->content[$part];
42 43
 		}
43 44
 		return NULL;
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/HtmlGrid.php 1 patch
Braces   +21 added lines, -14 removed lines patch added patch discarded remove patch
@@ -77,8 +77,9 @@  discard block
 block discarded – undo
77 77
 	public function addCol($width=NULL) {
78 78
 		$colCount=$this->colCount() + 1;
79 79
 		$this->setColsCount($colCount, true, $width);
80
-		if ($this->hasOnlyCols($this->count()))
81
-			return $this->content[$colCount - 1];
80
+		if ($this->hasOnlyCols($this->count())) {
81
+					return $this->content[$colCount - 1];
82
+		}
82 83
 		return $this;
83 84
 	}
84 85
 
@@ -166,8 +167,9 @@  discard block
 block discarded – undo
166 167
 	 */
167 168
 	public function rowCount() {
168 169
 		$count=$this->count();
169
-		if ($this->hasOnlyCols($count))
170
-			return 0;
170
+		if ($this->hasOnlyCols($count)) {
171
+					return 0;
172
+		}
171 173
 		return $count;
172 174
 	}
173 175
 
@@ -177,10 +179,12 @@  discard block
 block discarded – undo
177 179
 	 */
178 180
 	public function colCount() {
179 181
 		$count=$this->count();
180
-		if ($this->hasOnlyCols($count))
181
-			return $count;
182
-		if ($count > 0)
183
-			return $this->getItem(0)->count();
182
+		if ($this->hasOnlyCols($count)) {
183
+					return $count;
184
+		}
185
+		if ($count > 0) {
186
+					return $this->getItem(0)->count();
187
+		}
184 188
 		return 0;
185 189
 	}
186 190
 
@@ -191,8 +195,9 @@  discard block
 block discarded – undo
191 195
 	 * @return \Ajax\semantic\html\collections\HtmlGridCol
192 196
 	 */
193 197
 	public function getCell($row, $col) {
194
-		if ($row < 2 && $this->hasOnlyCols($this->count()))
195
-			return $this->getItem($col);
198
+		if ($row < 2 && $this->hasOnlyCols($this->count())) {
199
+					return $this->getItem($col);
200
+		}
196 201
 		$row=$this->getItem($row);
197 202
 		if (isset($row)) {
198 203
 			$col=$row->getItem($col);
@@ -241,8 +246,9 @@  discard block
 block discarded – undo
241 246
 	 * @return \Ajax\semantic\html\collections\HtmlGrid
242 247
 	 */
243 248
 	public function setPadded($value=NULL) {
244
-		if (isset($value))
245
-			$this->addToPropertyCtrl("class", $value, array ("vertically","horizontally" ));
249
+		if (isset($value)) {
250
+					$this->addToPropertyCtrl("class", $value, array ("vertically","horizontally" ));
251
+		}
246 252
 		return $this->addToProperty("class", "padded");
247 253
 	}
248 254
 
@@ -267,8 +273,9 @@  discard block
 block discarded – undo
267 273
 	 * @see \Ajax\common\html\HtmlCollection::createItem()
268 274
 	 */
269 275
 	protected function createItem($value) {
270
-		if ($this->_createCols === false)
271
-			$value=null;
276
+		if ($this->_createCols === false) {
277
+					$value=null;
278
+		}
272 279
 		$item=new HtmlGridRow($this->identifier . "-row-" . ($this->count() + 1), $value, $this->_colSizing, $this->_implicitRows);
273 280
 		return $item;
274 281
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlGridCol.php 1 patch
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,8 +20,9 @@  discard block
 block discarded – undo
20 20
 	public function __construct($identifier, $width=NULL) {
21 21
 		parent::__construct($identifier, "div");
22 22
 		$this->setClass("column");
23
-		if (isset($width))
24
-			$this->setWidth($width);
23
+		if (isset($width)) {
24
+					$this->setWidth($width);
25
+		}
25 26
 	}
26 27
 
27 28
 	/**
@@ -48,10 +49,11 @@  discard block
 block discarded – undo
48 49
 
49 50
 	public function addDivider($vertical=true, $content=NULL) {
50 51
 		$divider=new HtmlDivider("", $content);
51
-		if ($vertical)
52
-			$divider->setVertical();
53
-		else
54
-			$divider->setHorizontal();
52
+		if ($vertical) {
53
+					$divider->setVertical();
54
+		} else {
55
+					$divider->setHorizontal();
56
+		}
55 57
 		$this->wrap("", $divider);
56 58
 		return $divider;
57 59
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlIcon.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,8 +102,9 @@
 block discarded – undo
102 102
 	 */
103 103
 	public function setBordered($inverted=false) {
104 104
 		$invertedStr="";
105
-		if ($inverted !== false)
106
-			$invertedStr=" inverted";
105
+		if ($inverted !== false) {
106
+					$invertedStr=" inverted";
107
+		}
107 108
 		return $this->addToProperty("class", "bordered" . $invertedStr);
108 109
 	}
109 110
 
Please login to merge, or discard this patch.