TwitterAsset::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 17
rs 10
1
<?php
2
/**
3
 * @link      https://dukt.net/twitter/
4
 * @copyright Copyright (c) Dukt
5
 * @license   https://github.com/dukt/twitter/blob/master/LICENSE.md
6
 */
7
8
namespace dukt\twitter\web\assets\twitter;
9
10
use craft\web\AssetBundle;
11
use craft\web\assets\cp\CpAsset;
12
13
/**
14
 * Class TwitterAsset
15
 *
16
 * @author Dukt <[email protected]>
17
 * @since  3.0
18
 */
19
class TwitterAsset extends AssetBundle
20
{
21
    /**
22
     * @inheritdoc
23
     */
24
    public function init()
25
    {
26
        // define the path that your publishable resources live
27
        $this->sourcePath = __DIR__.'/dist';
28
29
        // define the dependencies
30
        $this->depends = [
31
            CpAsset::class,
32
        ];
33
34
        // define the relative path to CSS/JS files that should be registered with the page
35
        // when this asset bundle is registered
36
        $this->css = [
37
            'twitter.css',
38
        ];
39
40
        parent::init();
41
    }
42
}