GeneralController::actionIndex()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 0
cts 8
cp 0
rs 9.8666
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace flipbox\patron\cp\controllers\view;
4
5
class GeneralController extends AbstractViewController
6
{
7
    /**
8
     * Index
9
     *
10
     * @return string
11
     */
12
    public function actionIndex()
13
    {
14
        // Empty variables for template
15
        $variables = [];
16
17
        // apply base view variables
18
        $this->baseVariables($variables);
19
20
        return $this->redirect(
21
            $variables['baseCpPath'] . '/providers'
22
        );
23
    }
24
}
25