SocialAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 9
c 2
b 0
f 0
dl 0
loc 22
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 17 1
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