IoniconsAsset
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 21
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 1
dl 21
loc 21
c 0
b 0
f 0

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php
2
3
/*
4
 * This file is part of the Cjt Terabyte LLC [yii2-extension].
5
 *
6
 * (c) Cjt Terabyte LLC [yii2-extension] <http://github.com/cjtterabytesoft>.
7
 * For the full copyright and license information, please view the LICENSE.md.
8
 * file that was distributed with this source code.
9
 *
10
 * @link http://www.cjtterabyte.com.
11
 * @author Wilmer Arámbula <[email protected]>.
12
 * @copyright (c) 2015 Cjt Terabyte LLC.
13
 * @Extension: [yii2-adminlte-advanced].
14
 * @Assets [IoniconsAsset].
15
 * @since 1.0
16
 */
17
18
namespace cjtterabytesoft\adminlte\advanced\assets\bower;
19
20
use yii\web\AssetBundle;
21
22 View Code Duplication
class IoniconsAsset extends AssetBundle
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
23
{
24
    public $sourcePath = '@vendor/bower/ionicons/';
25
26
    public $css = [
27
        'css/ionicons.css',
28
    ];
29
30
    public $publishOptions = [
31
        'only' => [
32
            'fonts/*',
33
            'css/*',
34
        ],
35
        'except' => [
36
            'png',
37
            'src',
38
            'less',
39
            'scss',
40
        ]
41
    ];
42
}