Element   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
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 32
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 13 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://flipboxfactory.com/software/organization/license
6
 * @link       https://www.flipboxfactory.com/software/organization/
7
 */
8
9
namespace flipbox\organization\web\assets\element;
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 Element extends AssetBundle
19
{
20
21
    /**
22
     * @inheritdoc
23
     */
24
    public function init()
25
    {
26
27
        $this->js = [
28
            'Element' . $this->dotJs()
29
        ];
30
31
        $this->css = [
32
            'Element.css'
33
        ];
34
35
        parent::init();
36
    }
37
38
    /**
39
     * @inheritdoc
40
     */
41
    public $sourcePath = __DIR__ . '/dist';
42
43
    /**
44
     * @inheritdoc
45
     */
46
    public $depends = [
47
        CpAsset::class,
48
    ];
49
}
50