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

JVectorMapAsset   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 10
c 1
b 0
f 1
dl 0
loc 26
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 8 1
1
<?php
2
3
namespace backend\widgets\map\jvector\assets;
4
5
use yii\web\AssetBundle;
6
use yii\web\JqueryAsset;
7
8
/**
9
 * Class JVectorMapAsset
10
 *
11
 * @package backend\widgets\map\jvector\assets
12
 */
13
class JVectorMapAsset extends AssetBundle
14
{
15
    /** @var string */
16
    public $version = '2.0.5';
17
    /** @var string */
18
    public $sourcePath = __DIR__ . '/src/dist';
19
20
    /**
21
     * @inheritDoc
22
     */
23
    public function init()
24
    {
25
        parent::init();
26
        $this->css = [
27
            'jquery-jvectormap-' . $this->version . '.css'
28
        ];
29
        $this->js = [
30
            'jquery-jvectormap-' . $this->version . '.min.js'
31
        ];
32
    }
33
34
    /**
35
     * @var string[]
36
     */
37
    public $depends = [
38
        JqueryAsset::class,
39
    ];
40
}
41