NestedElementIndex   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 33
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 14 1
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