Code Duplication    Length = 18-19 lines in 2 locations

frontend/assets/AppAsset.php 1 location

@@ 18-35 (lines=18) @@
15
 * @author Agiel K. Saputra <[email protected]>
16
 * @since 0.1.0
17
 */
18
class AppAsset extends AssetBundle
19
{
20
    public $basePath = '@webroot';
21
    public $baseUrl = '@web';
22
    public $depends = [
23
        'yii\web\YiiAsset',
24
        'yii\bootstrap\BootstrapAsset',
25
    ];
26
27
    public function init()
28
    {
29
        if (YII_DEBUG) {
30
            $this->css = ['css/site.css'];
31
        } else {
32
            $this->css = ['css/min/site.css'];
33
        }
34
    }
35
}
36

themes/writesdown/classes/assets/ThemeAsset.php 1 location

@@ 18-36 (lines=19) @@
15
 * @author Agiel K. Saputra <[email protected]>
16
 * @since 0.1.0
17
 */
18
class ThemeAsset extends AssetBundle
19
{
20
    public $sourcePath = '@themes/writesdown/assets';
21
    public $depends = [
22
        'yii\web\YiiAsset',
23
        'yii\bootstrap\BootstrapAsset',
24
        'yii\bootstrap\BootstrapPluginAsset',
25
        'rmrevin\yii\fontawesome\AssetBundle',
26
    ];
27
28
    public function init()
29
    {
30
        if (YII_DEBUG) {
31
            $this->css = ['css/site.css'];
32
        } else {
33
            $this->css = ['css/site.min.css'];
34
        }
35
    }
36
}
37