Completed
Push — master ( bf1cd2...8824af )
by Nate
07:04
created

Reveal::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 0
Metric Value
c 0
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/flipboxfactory/craft-ember/blob/master/LICENSE
6
 * @link       https://github.com/flipboxfactory/craft-ember
7
 */
8
9
namespace flipbox\ember\web\assets\reveal;
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 Reveal 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
            'Reveal'.$this->dotJs()
32
        ];
33
34
        parent::init();
35
    }
36
37
    /**
38
     * @inheritdoc
39
     */
40
    public $depends = [
41
        CpAsset::class,
42
    ];
43
}
44