SettingsAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 11
c 2
b 0
f 0
dl 0
loc 31
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 23 1
1
<?php
2
/**
3
 * @link      https://dukt.net/analytics/
4
 * @copyright Copyright (c) 2022, Dukt
5
 * @license   https://github.com/dukt/analytics/blob/master/LICENSE.md
6
 */
7
8
namespace dukt\analytics\web\assets\settings;
9
10
use craft\web\AssetBundle;
11
use craft\web\assets\cp\CpAsset;
12
use dukt\analytics\web\assets\analytics\AnalyticsAsset;
13
14
/**
15
 * Settings asset bundle.
16
 */
17
class SettingsAsset extends AssetBundle
18
{
19
    // Public Methods
20
    // =========================================================================
21
22
    /**
23
     * @inheritdoc
24
     */
25
    public function init()
26
    {
27
        // define the path that your publishable resources live
28
        $this->sourcePath = __DIR__.'/dist';
29
30
        // define the dependencies
31
        $this->depends = [
32
            CpAsset::class,
33
            AnalyticsAsset::class,
34
        ];
35
36
        // define the relative path to CSS/JS files that should be registered with the page
37
        // when this asset bundle is registered
38
        $this->js = [
39
            'AccountExplorer.js',
40
        ];
41
42
        $this->css = [
43
            'AccountExplorer.css',
44
            'settings.css',
45
        ];
46
47
        parent::init();
48
    }
49
}