Passed
Push — master ( ead853...557cfb )
by Alexey
03:41
created

MapAsset::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace backend\widgets\map\jvector\assets;
4
5
use yii\web\AssetBundle;
6
7
/**
8
 * Class Map
9
 *
10
 * @package backend\widgets\map\jvector\assets
11
 */
12
class MapAsset extends AssetBundle
13
{
14
    /** @var string */
15
    public $sourcePath = __DIR__ . '/src/maps';
16
17
    /**
18
     * @inheritDoc
19
     */
20
    public function init()
21
    {
22
        parent::init();
23
        $this->js = [
24
            'jquery-jvectormap-world-mill-en.js'
25
        ];
26
    }
27
28
    /**
29
     * @var string[]
30
     */
31
    public $depends = [
32
        JVectorMapAsset::class,
33
    ];
34
}
35