Passed
Push — master ( a3074c...38e910 )
by Alexey
02:36
created

RaphaelAsset   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
c 0
b 0
f 0
dl 0
loc 16
rs 10

1 Method

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