| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | 1 | public function display(array $settings, $edit_mode = false) |
|
| 45 | { |
||
| 46 | 1 | $content = ''; |
|
| 47 | 1 | $content .= $this->user->lang('TOTAL_POSTS_COUNT', (int) $this->config['num_posts']) . '<br />'; |
|
| 48 | 1 | $content .= $this->user->lang('TOTAL_TOPICS', (int) $this->config['num_topics']) . '<br />'; |
|
| 49 | 1 | $content .= $this->user->lang('TOTAL_USERS', (int) $this->config['num_users']) . '<br />'; |
|
| 50 | 1 | $content .= $this->user->lang('NEWEST_USER', get_username_string('full', $this->config['newest_user_id'], $this->config['newest_username'], $this->config['newest_user_colour'])); |
|
| 51 | |||
| 52 | return array( |
||
| 53 | 1 | 'title' => 'STATISTICS', |
|
| 54 | 1 | 'content' => $content, |
|
| 55 | 1 | ); |
|
| 56 | } |
||
| 57 | } |
||
| 58 |