TwitterAsset   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 7
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/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
}