Completed
Push — master ( f6cc4f...20183c )
by Andrii
03:46
created

CommonController::actionIndex()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Automation tool mixed with code generator for easier continuous development
4
 *
5
 * @link      https://github.com/hiqdev/hidev
6
 * @package   hidev
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hidev\console;
12
13
use Yii;
14
15
/**
16
 * Common controller.
17
 */
18
class CommonController extends \hidev\base\Controller
19
{
20
    use \hiqdev\yii2\collection\ManagerTrait;
21
22
    public function actionIndex()
23
    {
24
        Yii::debug("Started: '$this->id'");
0 ignored issues
show
Bug introduced by
The method debug() does not seem to exist on object<Yii>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
25
    }
26
27
    public function actions()
28
    {
29
        $actions = [];
30
        foreach ($this->keys() as $name) {
31
            $actions[$name] = ['class' => CommonAction::class];
32
        }
33
34
        return $actions;
35
    }
36
}
37