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

src/console/CommonController.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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
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