Passed
Push — v1 ( 4c8497...ae9471 )
by Andrew
22:19 queued 10:54
created

InstantAnalyticsAsset::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 11
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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