FollowersAsset   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 11 2
1
<?php
2
3
namespace dominus77\maintenance\widgets\followers\assets;
4
5
use yii\web\AssetBundle;
6
7
/**
8
 * Class FollowersAsset
9
 * @package dominus77\maintenance\widgets\followers\assets
10
 */
11
class FollowersAsset extends AssetBundle
12
{
13
    /**
14
     * @var string
15
     */
16
    public $sourcePath;
17
18
    /**
19
     * @inheritdoc
20
     */
21
    public function init()
22
    {
23
        parent::init();
24
        $this->sourcePath = __DIR__ . '/src';
25
26
        $this->css = [
27
            'css/style.css'
28
        ];
29
30
        $this->publishOptions = [
31
            'forceCopy' => YII_ENV_DEV ? true : false
32
        ];
33
    }
34
}
35