Test Failed
Push — main ( 1f99c7...ac1cad )
by Rafael
61:18
created

AdherentTypeController::index()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 7
nc 2
nop 0
dl 0
loc 11
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Modules\Adherent\Controller;
4
5
use Alxarafe\Base\Controller;
6
7
class AdherentTypeController extends Controller
8
{
9
10
    public function index()
11
    {
12
        switch ($this->action) {
13
            case 'login':
14
                $this->template = 'login';
15
                break;
16
            default:
17
                $this->template = 'index';
18
        }
19
20
        parent::index();
21
    }
22
}