| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | public function __invoke($item) |
||
| 10 | { |
||
| 11 | $url = $this->getView()->plugin('url'); |
||
|
|
|||
| 12 | |||
| 13 | $class = ''; |
||
| 14 | if (! $item['status']) { |
||
| 15 | $class = ' class="text-danger"'; |
||
| 16 | } else { |
||
| 17 | $class = ' class="text-success"'; |
||
| 18 | } |
||
| 19 | $str = '<a' . $class . ' href="' . $url('player-info', ['nick' => $item['nick']]) . '">'; |
||
| 20 | $str .= $item['nick'] . '</a>'; |
||
| 21 | $str .= ', the level ' . $item['level'] . ' ' . $item['class'] . '. '; |
||
| 22 | $str .= 'Next level in ' . $item['ttl'] . '.'; |
||
| 23 | |||
| 24 | return $str; |
||
| 25 | } |
||
| 27 |