Passed
Push — develop ( cddb1d...e5b86c )
by Andrew
05:45
created

RetourImportAsset::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 9
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Retour plugin for Craft CMS 3.x
4
 *
5
 * Retour allows you to intelligently redirect legacy URLs, so that you don't
6
 * lose SEO value when rebuilding & restructuring a website
7
 *
8
 * @link      https://nystudio107.com/
9
 * @copyright Copyright (c) 2018 nystudio107
10
 */
11
12
namespace nystudio107\retour\assetbundles\retour;
13
14
use craft\web\AssetBundle;
15
use craft\web\assets\cp\CpAsset;
16
17
/**
18
 * @author    nystudio107
19
 * @package   Retour
20
 * @since     3.0.0
21
 */
22
class RetourImportAsset extends AssetBundle
23
{
24
    // Public Methods
25
    // =========================================================================
26
27
    /**
28
     * @inheritdoc
29
     */
30
    public function init()
31
    {
32
        $this->sourcePath = '@nystudio107/retour/assetbundles/retour/dist';
33
        $this->depends = [
34
            CpAsset::class,
35
            RetourAsset::class,
36
        ];
37
38
        parent::init();
39
    }
40
}
41