| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function render($items) |
||
| 41 | { |
||
| 42 | $comments = []; |
||
| 43 | foreach ($items as $item => $comment) { |
||
| 44 | $comments[$comment][$item] = $item; |
||
| 45 | } |
||
| 46 | |||
| 47 | $res = ''; |
||
| 48 | foreach ($comments as $comment => $items) { |
||
|
|
|||
| 49 | ksort($items); |
||
| 50 | $res .= static::renderComment($comment) . implode("\n", $items) . "\n"; |
||
| 51 | } |
||
| 52 | |||
| 53 | return ltrim($res); |
||
| 54 | } |
||
| 61 |