SocialAsset::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 8
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 17
rs 10
1
<?php
2
/**
3
 * @link      https://dukt.net/social/
4
 * @copyright Copyright (c) Dukt
5
 * @license   https://github.com/dukt/social/blob/v2/LICENSE.md
6
 */
7
8
namespace dukt\social\web\assets\social;
9
10
use craft\web\AssetBundle;
11
use craft\web\assets\cp\CpAsset;
12
13
/**
14
 * Asset bundle for Social
15
 */
16
class SocialAsset extends AssetBundle
17
{
18
    /**
19
     * @inheritdoc
20
     */
21
    public function init()
22
    {
23
        $this->sourcePath = __DIR__ . '/dist';
24
25
        $this->depends = [
26
            CpAsset::class,
27
        ];
28
29
        $this->css = [
30
            'social.css',
31
        ];
32
33
        $this->js = [
34
            'social.js',
35
        ];
36
37
        parent::init();
38
    }
39
}
40