Passed
Push — v3 ( 4358aa...b8a538 )
by Andrew
05:33
created

SeomaticChartAsset::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nc 1
nop 0
dl 0
loc 19
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * SEOmatic plugin for Craft CMS 3.x
4
 *
5
 * A turnkey SEO implementation for Craft CMS that is comprehensive, powerful,
6
 * and flexible
7
 *
8
 * @link      https://nystudio107.com
9
 * @copyright Copyright (c) 2017 nystudio107
10
 */
11
12
namespace nystudio107\seomatic\assetbundles\seomatic;
13
14
use craft\web\AssetBundle;
15
use craft\web\assets\cp\CpAsset;
16
use craft\web\assets\d3\D3Asset;
17
18
/**
19
 * @author    nystudio107
20
 * @package   Seomatic
21
 * @since     3.0.0
22
 */
23
class SeomaticChartAsset extends AssetBundle
24
{
25
    // Public Methods
26
    // =========================================================================
27
28
    /**
29
     * @inheritdoc
30
     */
31
    public function init()
32
    {
33
        $this->sourcePath = "@nystudio107/seomatic/assetbundles/seomatic/dist";
34
35
        $this->depends = [
36
            CpAsset::class,
37
            D3Asset::class,
38
            SeomaticAsset::class,
39
        ];
40
41
        $this->js = [
42
            'js/seomatic-chart.js',
43
        ];
44
45
        $this->css = [
46
            'css/seomatic-chart.css',
47
        ];
48
49
        parent::init();
50
    }
51
}
52