Integrations::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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