IndexController::indexAction()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2.0625

Importance

Changes 3
Bugs 0 Features 0
Metric Value
cc 2
eloc 4
c 3
b 0
f 0
nc 2
nop 0
dl 0
loc 6
ccs 3
cts 4
cp 0.75
crap 2.0625
rs 10
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