TweetFieldAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 22 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\tweetfield;
9
10
use craft\web\AssetBundle;
11
use craft\web\assets\cp\CpAsset;
12
use dukt\twitter\web\assets\twitter\TwitterAsset;
13
14
/**
15
 * Class TwitterAsset
16
 *
17
 * @author Dukt <[email protected]>
18
 * @since  3.0
19
 */
20
class TweetFieldAsset extends AssetBundle
21
{
22
    /**
23
     * @inheritdoc
24
     */
25
    public function init()
26
    {
27
        // define the path that your publishable resources live
28
        $this->sourcePath = __DIR__.'/dist';
29
30
        // define the dependencies
31
        $this->depends = [
32
            CpAsset::class,
33
            TwitterAsset::class,
34
        ];
35
36
        // define the relative path to CSS/JS files that should be registered with the page
37
        // when this asset bundle is registered
38
        $this->css = [
39
            'TweetInput.css',
40
        ];
41
42
        $this->js = [
43
            'TweetInput.js',
44
        ];
45
46
        parent::init();
47
    }
48
}