AnimateCssAsset   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
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 28
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 5 2
1
<?php
2
3
namespace dominus77\sweetalert2\assets;
4
5
use yii\web\AssetBundle;
6
7
/**
8
 * Class AnimateCssAsset
9
 * @package dominus77\sweetalert2\assets
10
 * @see https://github.com/daneden/animate.css
11
 */
12
class AnimateCssAsset extends AssetBundle
13
{
14
    /**
15
     * @var string
16
     */
17
    public $sourcePath = '@vendor/daneden/animate.css';
18
19
    /**
20
     * @var array
21
     */
22
    public $css = [];
23
24
    /**
25
     * @inheritdoc
26
     */
27 3
    public function init()
28
    {
29 3
        $min = YII_ENV_DEV ? '' : '.min';
30 3
        $this->css[] = 'animate' . $min . '.css';
31 3
    }
32
33
    /**
34
     * @var array
35
     */
36
    public $depends = [
37
        'yii\web\JqueryAsset',
38
    ];
39
}
40