Bootstrap   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 5 3
1
<?php
2
3
namespace yii2mod\scheduling;
4
5
use yii\base\BootstrapInterface;
6
use yii\console\Application;
7
8
/**
9
 * Class Bootstrap
10
 *
11
 * @package yii2mod\scheduling
12
 */
13
class Bootstrap implements BootstrapInterface
14
{
15
    /**
16
     * @inheritdoc
17
     */
18
    public function bootstrap($app)
19
    {
20
        if ($app instanceof Application) {
21
            if (!isset($app->controllerMap['schedule'])) {
22
                $app->controllerMap['schedule'] = 'yii2mod\scheduling\ScheduleController';
23
            }
24
        }
25
    }
26
}
27