Completed
Push — master ( 4ac545...fafd4b )
by Nate
03:35
created

Hud::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 7
cp 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://github.com/flipbox/ember/blob/master/LICENSE
6
 * @link       https://github.com/flipbox/ember
7
 */
8
9
namespace flipbox\ember\assets\hud;
10
11
use craft\web\AssetBundle;
12
use craft\web\assets\cp\CpAsset;
13
14
/**
15
 * @author Flipbox Factory <[email protected]>
16
 * @since 1.0.0
17
 */
18
class Hud extends AssetBundle
19
{
20
    /**
21
     * @inheritdoc
22
     */
23
    public $sourcePath = __DIR__ . '/dist';
24
25
    /**
26
     * @inheritdoc
27
     */
28
    public function init()
29
    {
30
        $this->js = [
31
            'Hud'.$this->dotJs()
32
        ];
33
34
        parent::init();
35
    }
36
37
    /**
38
     * @inheritdoc
39
     */
40
    public $depends = [
41
        CpAsset::class,
42
    ];
43
}
44