InstantAnalyticsAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
c 0
b 0
f 0
dl 0
loc 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 12 1
1
<?php
2
/**
3
 * Instant Analytics plugin for Craft CMS
4
 *
5
 * Instant Analytics brings full Google Analytics support to your Twig templates
6
 *
7
 * @link      https://nystudio107.com
0 ignored issues
show
Coding Style introduced by
The tag in position 1 should be the @copyright tag
Loading history...
8
 * @copyright Copyright (c) 2017 nystudio107
0 ignored issues
show
Coding Style introduced by
@copyright tag must contain a year and the name of the copyright holder
Loading history...
9
 */
0 ignored issues
show
Coding Style introduced by
PHP version not specified
Loading history...
Coding Style introduced by
Missing @category tag in file comment
Loading history...
Coding Style introduced by
Missing @package tag in file comment
Loading history...
Coding Style introduced by
Missing @author tag in file comment
Loading history...
Coding Style introduced by
Missing @license tag in file comment
Loading history...
10
11
namespace nystudio107\instantanalytics\assetbundles\instantanalytics;
12
13
use craft\web\AssetBundle;
14
use craft\web\assets\cp\CpAsset;
15
use craft\web\assets\vue\VueAsset;
16
17
class InstantAnalyticsAsset extends AssetBundle
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class InstantAnalyticsAsset
Loading history...
18
{
19
    // Public Methods
20
    // =========================================================================
21
22
    /**
23
     * Initializes the bundle.
24
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
25
    public function init()
26
    {
27
        // define the path that your publishable resources live
28
        $this->sourcePath = '@nystudio107/instantanalytics/web/assets/dist';
29
30
        // define the dependencies
31
        $this->depends = [
32
            CpAsset::class,
33
            VueAsset::class,
34
        ];
35
36
        parent::init();
37
    }
38
}
39