Completed
Push — develop ( 6a2a65...4fcbf9 )
by Nate
07:38
created

FluxController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
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 27
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionIndex() 0 10 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://flipboxfactory.com/software/flux/license
6
 * @link       https://www.flipboxfactory.com/software/flux/
7
 */
8
9
namespace flipbox\flux\cp\controllers\view;
10
11
use yii\web\Response;
12
13
/**
14
 * @author Flipbox Factory <[email protected]>
15
 * @since 1.0.0
16
 */
17
class FluxController extends AbstractController
18
{
19
    /**
20
     * The template base path
21
     */
22
    const TEMPLATE_BASE = parent::TEMPLATE_BASE . '/flux';
23
24
    /**organization
25
     * The index view template path
26
     */
27
    const TEMPLATE_INDEX = self::TEMPLATE_BASE . '/index';
28
29
    /**
30
     * @return Response
31
     * @throws \craft\errors\SiteNotFoundException
32
     */
33
    public function actionIndex()
34
    {
35
        $variables = [];
36
        $this->baseVariables($variables);
37
38
        return $this->renderTemplate(
39
            static::TEMPLATE_INDEX,
40
            $variables
41
        );
42
    }
43
}
44