GeneralController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 20
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionIndex() 0 12 1
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