DemoAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
c 0
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 5 1
1
<?php
2
3
namespace backend\widgets\control;
4
5
use yii\web\AssetBundle;
6
7
/**
8
 * Class DemoAsset
9
 * @package backend\widgets\control
10
 */
11
class DemoAsset extends AssetBundle
12
{
13
    /**
14
     * @var string
15
     */
16
    public $sourcePath = '@vendor/almasaeed2010/adminlte/dist';
17
18
    /**
19
     * @inheritdoc
20
     */
21
    public function init()
22
    {
23
        parent::init();
24
        $this->js = [
25
            'js/demo.js'
26
        ];
27
    }
28
}
29