Passed
Push — develop ( 432c16...f31602 )
by Andrew
10:35
created

InstantAnalyticsAsset   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 11 1
1
<?php
2
/**
3
 * Instant Analytics plugin for Craft CMS 3.x
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
16
class InstantAnalyticsAsset extends AssetBundle
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class InstantAnalyticsAsset
Loading history...
17
{
18
    // Public Methods
19
    // =========================================================================
20
21
    /**
22
     * Initializes the bundle.
23
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
24
    public function init()
25
    {
26
        // define the path that your publishable resources live
27
        $this->sourcePath = '@nystudio107/instantanalytics/assetbundles/instantanalytics/dist';
28
29
        // define the dependencies
30
        $this->depends = [
31
            CpAsset::class,
32
        ];
33
34
        parent::init();
35
    }
36
}
37