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

FluxController::actionIndex()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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