Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 8 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php defined('BASEPATH') OR exit('No direct script access allowed'); |
||
8 | public function index() : void { |
||
9 | $this->header_data['title'] = "Site Stats"; |
||
10 | $this->header_data['page'] = "stats"; |
||
11 | |||
12 | $this->body_data['stats'] = $this->Tracker->stats->get(); |
||
13 | |||
14 | $this->_render_page("Stats"); |
||
15 | } |
||
16 | } |
||
17 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.