AwesomeMarkerAsset   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 15
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 2
1
<?php
2
/**
3
 * @copyright Copyright (c) 2013 2amigOS! Consulting Group LLC
4
 * @link http://2amigos.us
5
 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
6
 */
7
namespace dosamigos\leaflet\plugins\awesome;
8
9
use yii\web\AssetBundle;
10
11
/**
12
 * AwesomeMarkerAsset
13
 *
14
 * @author Antonio Ramirez <[email protected]>
15
 * @link http://www.ramirezcobos.com/
16
 * @link http://www.2amigos.us/
17
 * @package dosamigos\leaflet\plugins\awesome
18
 */
19
class AwesomeMarkerAsset extends AssetBundle
20
{
21
    public $sourcePath = '@vendor/2amigos/yii2-leaflet-awesome-plugin/src/assets';
22
23
    public $css = ['css/leaflet.awesome-markers.css'];
24
25
    public $depends = [
26
        'dosamigos\leaflet\LeafLetAsset',
27
    ];
28
29 6
    public function init()
30
    {
31 6
        $this->js[] = YII_DEBUG ? 'js/leaflet.awesome-markers.js' : 'js/leaflet.awesome-markers.min.js';
32 6
    }
33
}
34