Code Duplication    Length = 6-6 lines in 2 locations

application/modules/mod_stats/controllers/UsersController.php 2 locations

@@ 139-144 (lines=6) @@
136
     */
137
    public function registered() {
138
        // getting view type
139
        if (CI::$APP->input->get('view_type')) {
140
            $vt = CI::$APP->input->get('view_type');
141
            $viewType = $vt == 'table' || $vt == 'chart' ? $vt : 'chart';
142
        } else {
143
            $viewType = 'table';
144
        }
145
146
        $params = [
147
                   'dateFrom' => CI::$APP->input->get('from') ? CI::$APP->input->get('from') : '2005-05-05',
@@ 68-73 (lines=6) @@
65
     */
66
    public function attendance() {
67
        // getting view type
68
        if (CI::$APP->input->get('view_type')) {
69
            $vt = CI::$APP->input->get('view_type');
70
            $viewType = $vt == 'table' || $vt == 'chart' ? $vt : 'chart';
71
        } else {
72
            $viewType = 'table';
73
        }
74
75
        $this->controller->load->model('attendance_model');
76