Test Failed
Push — main ( ac1cad...7178bf )
by Rafael
50:59
created

AdherentTypeController   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 30
dl 0
loc 36
rs 10
c 2
b 0
f 0
wmc 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B index() 0 34 10
1
<?php
2
3
namespace Modules\Adherent\Controller;
4
5
use Alxarafe\Base\Controller;
6
7
class AdherentTypeController extends Controller
8
{
9
    public function index(bool $executeActions = true): bool
10
    {
11
        switch ($this->action) {
12
            case 'logina':
13
                $this->template = 'theme/adminlte/auth/login';
14
                break;
15
            case 'loginm':
16
                $this->template = 'theme/md/auth/login';
17
                break;
18
            case 'logine':
19
                $this->template = 'theme/eldy/auth/login';
20
                break;
21
            case 'lista':
22
                $this->template = 'theme/adminlte/page/adherent/type_list';
23
                break;
24
            case 'listm':
25
                $this->template = 'theme/md/page/adherent/type_list';
26
                break;
27
            case 'liste':
28
                $this->template = 'theme/eldy/page/adherent/type_list';
29
                break;
30
            case 'edita':
31
                $this->template = 'theme/adminlte/page/adherent/type_edit';
32
                break;
33
            case 'editm':
34
                $this->template = 'theme/md/page/adherent/type_edit';
35
                break;
36
            case 'edite':
37
                $this->template = 'theme/md/page/adherent/type_edit';
38
                break;
39
//            default:
40
//                $this->template = 'page/adherent/type_edit';
41
        }
42
        return parent::index();
43
    }
44
}
45