Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 1 | public function __toString() |
|
17 | { |
||
18 | 1 | $res = ""; |
|
19 | 1 | $count = count($this->channelContext); |
|
20 | 1 | foreach ($this->channelContext as $key => $value) { |
|
21 | 1 | --$count; |
|
22 | 1 | $res .= sprintf("%s: %s", $key, $value); |
|
23 | 1 | if ($count >= 1) { |
|
24 | 1 | $res .= ",\r\n"; |
|
25 | } |
||
26 | } |
||
27 | 1 | return sprintf("%s: {%s}", $this->channelJsVarKey, $res); |
|
28 | } |
||
35 |