Passed
Push — develop ( 2d85f4...a6d9de )
by Andrew
06:09
created

ManifestVariable::includeFileFromManifest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace nystudio107\instantanalytics\variables;
4
5
use nystudio107\instantanalytics\helpers\Manifest as ManifestHelper;
6
7
class ManifestVariable
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class ManifestVariable
Loading history...
8
{
9
    // Public Methods
10
    // =========================================================================
11
12
    /**
13
     * Get the passed in JS modules from the manifest, and register them in the current Craft view
14
     *
15
     * @param array $modules
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value for @param tag indented incorrectly; expected 2 spaces but found 1
Loading history...
16
     * @throws \yii\base\InvalidConfigException
0 ignored issues
show
Coding Style introduced by
Tag @throws cannot be grouped with parameter tags in a doc comment
Loading history...
17
     * @throws \yii\web\NotFoundHttpException
0 ignored issues
show
Coding Style introduced by
Tag @throws cannot be grouped with parameter tags in a doc comment
Loading history...
18
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
19
    public function registerJsModules(array $modules)
20
    {
21
        ManifestHelper::registerJsModules($modules);
22
    }
23
24
    /**
25
     * Get the passed in CS modules from the manifest, and register them in the current Craft view
26
     *
27
     * @param array $modules
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Tag value for @param tag indented incorrectly; expected 2 spaces but found 1
Loading history...
28
     * @throws \yii\base\InvalidConfigException
0 ignored issues
show
Coding Style introduced by
Tag @throws cannot be grouped with parameter tags in a doc comment
Loading history...
29
     * @throws \yii\web\NotFoundHttpException
0 ignored issues
show
Coding Style introduced by
Tag @throws cannot be grouped with parameter tags in a doc comment
Loading history...
30
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
31
    public function registerCssModules(array $modules)
32
    {
33
        ManifestHelper::registerCssModules($modules);
34
    }
35
}
36