@@ -8,23 +8,23 @@ discard block |
||
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 |
||
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 |
@@ -47,8 +47,9 @@ |
||
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; |