CountDownAsset::init()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 19
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 12
c 1
b 0
f 1
dl 0
loc 19
rs 9.8666
cc 2
nc 2
nop 0
1
<?php
2
3
namespace dominus77\maintenance\widgets\timer\assets;
4
5
use yii\web\AssetBundle;
6
use yii\web\JqueryAsset;
7
8
/**
9
 * Class CountDownAsset
10
 * @package dominus77\maintenance\widgets\timer\assets
11
 */
12
class CountDownAsset extends AssetBundle
13
{
14
    /**
15
     * @var string
16
     */
17
    public $sourcePath;
18
19
    /**
20
     * @inheritdoc
21
     */
22
    public function init()
23
    {
24
        parent::init();
25
        $this->sourcePath = __DIR__ . '/src';
26
27
        $this->css = [
28
            'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300',
29
            'css/styles.css',
30
            'css/jquery.countdown.css'
31
        ];
32
33
        $this->js = [
34
            'js/i18n.js',
35
            'js/jquery.countdown.js',
36
            'js/script.js'
37
        ];
38
39
        $this->publishOptions = [
40
            'forceCopy' => YII_ENV_DEV ? true : false
41
        ];
42
    }
43
44
    /**
45
     * @var array
46
     */
47
    public $depends = [
48
        JqueryAsset::class
49
    ];
50
}
51