Code Duplication    Length = 14-15 lines in 2 locations

application/controllers/Help.php 1 location

@@ 3-17 (lines=15) @@
1
<?php defined('BASEPATH') or exit('No direct script access allowed');
2
3
class Help extends MY_Controller {
4
	public function __construct() {
5
		parent::__construct();
6
7
		$this->load->helper('form');
8
		$this->load->library('form_validation');
9
	}
10
11
	public function index() : void {
12
		$this->header_data['title'] = "Help";
13
		$this->header_data['page']  = "help";
14
15
		$this->_render_page('Help');
16
	}
17
}
18

application/controllers/Stats.php 1 location

@@ 3-16 (lines=14) @@
1
<?php defined('BASEPATH') OR exit('No direct script access allowed');
2
3
class Stats extends MY_Controller {
4
	public function __construct() {
5
		parent::__construct();
6
	}
7
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