IndexController   A
last analyzed

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

2 Methods

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