Module   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 5 2
1
<?php
2
3
namespace andmemasin\language;
4
5
6
use yii;
7
8
class Module extends yii\base\Module
9
{
10
    public $permissionMap = [
11
        'admin' => 'admin::Language',
12
    ];
13
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function init()
18
    {
19
        parent::init();
20
        if (Yii::$app instanceof \yii\console\Application) {
21
            $this->controllerNamespace = 'andmemasin\language\commands';
22
        }
23
    }
24
25
}
26