VanillaforumsAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 17 1
1
<?php
2
/**
3
 * Vanillaforums plugin for Craft CMS 3.x
4
 *
5
 * Single Sign On plugin for VanillaForums/jsConnect and CraftCMS
6
 *
7
 * @link      https://nystudio107.com/
8
 * @copyright Copyright (c) 2019 nystudio107
9
 */
10
11
namespace nystudio107\vanillaforums\assetbundles\vanillaforums;
12
13
use Craft;
14
use craft\web\AssetBundle;
15
use craft\web\assets\cp\CpAsset;
16
17
/**
18
 * @author    nystudio107
19
 * @package   Vanillaforums
20
 * @since     3.0.0
21
 */
22
class VanillaforumsAsset extends AssetBundle
23
{
24
    // Public Methods
25
    // =========================================================================
26
27
    /**
28
     * @inheritdoc
29
     */
30
    public function init()
31
    {
32
        $this->sourcePath = "@nystudio107/vanillaforums/assetbundles/vanillaforums/dist";
33
34
        $this->depends = [
35
            CpAsset::class,
36
        ];
37
38
        $this->js = [
39
            'js/Vanillaforums.js',
40
        ];
41
42
        $this->css = [
43
            'css/Vanillaforums.css',
44
        ];
45
46
        parent::init();
47
    }
48
}
49