IndexController::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

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