Failed Conditions
Push — master ( 1a6d63...dcbc0d )
by Adrien
05:26
created

IndexController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 83.33%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 3
eloc 5
c 3
b 0
f 0
dl 0
loc 13
rs 10
ccs 5
cts 6
cp 0.8333

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 2 1
1
<?php
2
3
class IndexController extends Zend_Controller_Action
4
{
5 1
    public function init(): void
6
    {
7
        // Initialize action controller here
8 1
    }
9
10 1
    public function indexAction(): void
11
    {
12 1
        if (\mQueue\Model\User::getCurrent()) {
13
            $this->_helper->redirector('index', 'movie');
14
        } else {
15 1
            $this->_helper->redirector('index', 'activity');
16
        }
17 1
    }
18
}
19