Code Duplication    Length = 12-13 lines in 2 locations

application/controllers/FrontPage.php 1 location

@@ 3-15 (lines=13) @@
1
<?php defined('BASEPATH') OR exit('No direct script access allowed');
2
3
class FrontPage extends User_Controller {
4
	public function __construct() {
5
		parent::__construct();
6
	}
7
8
	public function index() : void {
9
		$this->header_data['title'] = 'Index';
10
		$this->header_data['page']  = 'index';
11
12
		if($this->User->logged_in()) redirect('user/dashboard');
13
		$this->_render_page('FrontPage');
14
	}
15
}
16

application/controllers/Import_AMR.php 1 location

@@ 3-14 (lines=12) @@
1
<?php defined('BASEPATH') OR exit('No direct script access allowed');
2
3
class Import_AMR extends User_Controller {
4
	public function __construct() {
5
		parent::__construct();
6
	}
7
8
	public function index() : void {
9
		$this->header_data['title'] = "AMR Importer";
10
		$this->header_data['page']  = "import_amr";
11
12
		$this->_render_page("Import_AMR");
13
	}
14
}
15