Completed
Push — master ( ff2b0b...f369f8 )
by Alexey
05:58
created

SubscribeFormAsset   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 11 2
1
<?php
2
3
namespace common\components\maintenance\widgets\assets;
4
5
use yii\bootstrap\BootstrapAsset;
6
use yii\web\AssetBundle;
7
use yii\web\JqueryAsset;
8
9
/**
10
 * Class SubscribeFormAsset
11
 * @package common\components\maintenance\widgets\assets
12
 */
13
class SubscribeFormAsset extends AssetBundle
14
{
15
    /**
16
     * @var string
17
     */
18
    public $sourcePath;
19
20
    /**
21
     * @inheritdoc
22
     */
23
    public function init()
24
    {
25
        parent::init();
26
        $this->sourcePath = __DIR__ . '/src';
27
28
        $this->js = [
29
            'js/script.js'
30
        ];
31
32
        $this->publishOptions = [
33
            'forceCopy' => YII_ENV_DEV ? true : false
34
        ];
35
    }
36
37
    /**
38
     * @var array
39
     */
40
    public $depends = [
41
        JqueryAsset::class,
42
        BootstrapAsset::class,
43
    ];
44
}
45