NestedElementIndex::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 0
cts 12
cp 0
rs 9.7998
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://github.com/flipboxfactory/craft-elements-nested-index/blob/master/LICENSE
6
 * @link       https://github.com/flipboxfactory/craft-elements-nested-index
7
 */
8
9
namespace flipbox\craft\elements\nestedIndex\web\assets\index;
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 NestedElementIndex extends AssetBundle
20
{
21
    /**
22
     * @inheritdoc
23
     */
24
    public function init()
25
    {
26
        $this->js = [
27
            'js/NestedElementIndex' . $this->dotJs(),
0 ignored issues
show
Deprecated Code introduced by
The method craft\web\AssetBundle::dotJs() has been deprecated with message: in 3.5.0

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
28
            'js/NestedElementIndexSelectInput' . $this->dotJs(),
0 ignored issues
show
Deprecated Code introduced by
The method craft\web\AssetBundle::dotJs() has been deprecated with message: in 3.5.0

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
29
            'js/NestedIndexElementActionTrigger' . $this->dotJs(),
0 ignored issues
show
Deprecated Code introduced by
The method craft\web\AssetBundle::dotJs() has been deprecated with message: in 3.5.0

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
30
        ];
31
32
        $this->css = [
33
            'css/NestedElementIndex.css'
34
        ];
35
36
        parent::init();
37
    }
38
39
    /**
40
     * @inheritdoc
41
     */
42
    public $sourcePath = __DIR__ . '/dist';
43
44
    /**
45
     * @inheritdoc
46
     */
47
    public $depends = [
48
        CpAsset::class,
49
        Actions::class
50
    ];
51
}
52