Passed
Push — master ( 525a36...ddab02 )
by Jean-Christophe
13:28
created
Ajax/semantic/html/content/view/HtmlViewGroups.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 abstract class HtmlViewGroups extends HtmlSemCollection {
11 11
 
12
-	public function __construct($identifier, $uiClass,$items=array()) {
12
+	public function __construct($identifier, $uiClass, $items=array()) {
13 13
 		parent::__construct($identifier, "div", $uiClass);
14 14
 		$this->addItems($items);
15 15
 	}
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 * @param int $wide
42 42
 	 */
43 43
 	public function setWide($wide) {
44
-		$wide=Wide::getConstants()["W" . $wide];
44
+		$wide=Wide::getConstants()["W".$wide];
45 45
 		return $this->addToPropertyCtrl("class", $wide, Wide::getConstants());
46 46
 	}
47 47
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	/**
51 51
 	 * @return HtmlViewGroups
52 52
 	 */
53
-	public function getItem($index){
53
+	public function getItem($index) {
54 54
 		return parent::getItem($index);
55 55
 	}
56 56
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 		$item=$this->getItem($itemIndex);
59 59
 		if (isset($item)) {
60 60
 			$content=$item->getContent();
61
-			if(isset($content[$contentIndex]))
61
+			if (isset($content[$contentIndex]))
62 62
 				return $content[$contentIndex];
63 63
 			return $content;
64 64
 		}
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 		return $this->addItem($function($object));
69 69
 	}
70 70
 
71
-	public function run(JsUtils $js){
71
+	public function run(JsUtils $js) {
72 72
 		$result=parent::run($js);
73 73
 		return $result->setItemSelector(".item");
74 74
 	}
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,8 +31,9 @@  discard block
 block discarded – undo
31 31
 			if (isset($extra)) {
32 32
 				$result->addExtraContent($extra);
33 33
 			}
34
-		} else
35
-			$result->addItemContent($value);
34
+		} else {
35
+					$result->addItemContent($value);
36
+		}
36 37
 		return $result;
37 38
 	}
38 39
 
@@ -58,8 +59,9 @@  discard block
 block discarded – undo
58 59
 		$item=$this->getItem($itemIndex);
59 60
 		if (isset($item)) {
60 61
 			$content=$item->getContent();
61
-			if(isset($content[$contentIndex]))
62
-				return $content[$contentIndex];
62
+			if(isset($content[$contentIndex])) {
63
+							return $content[$contentIndex];
64
+			}
63 65
 			return $content;
64 66
 		}
65 67
 	}
Please login to merge, or discard this patch.