Conditions | 3 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
26 | 7 | public function getData() |
|
27 | { |
||
28 | 7 | $result = parent::getData(); |
|
29 | |||
30 | 7 | if (!empty($this->tags)) { |
|
31 | 1 | $tags = []; |
|
32 | |||
33 | 1 | array_walk($this->tags, function ($tagValue, $tagName) use (&$tags) { |
|
34 | 1 | $tags[] = is_integer($tagName) ? $tagValue : $tagName . ':' . $tagValue; |
|
35 | 1 | }); |
|
36 | |||
37 | 1 | $result .= '|#' . implode(',', $tags); |
|
38 | 1 | } |
|
39 | |||
40 | 7 | return $result; |
|
41 | } |
||
42 | } |
||
43 |