Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | protected function createItem($value) { |
||
16 | $result=new HtmlCard("card-" . $this->count()); |
||
17 | if (\is_array($value)) { |
||
18 | $header=JArray::getValue($value, "header", 0); |
||
19 | $metas=JArray::getValue($value, "metas", 1); |
||
20 | $description=JArray::getValue($value, "description", 2); |
||
21 | $result->addCardHeaderContent($header, $metas, $description); |
||
22 | } else |
||
23 | $result->addCardContent($value); |
||
24 | return $result; |
||
25 | } |
||
26 | |||
30 | } |