@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -31,8 +31,9 @@ discard block |
||
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 |
||
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 | } |