Passed
Push — master ( 64ef86...92fde7 )
by WILMER
02:55
created

Bootstrap   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 6 2
1
<?php
2
3
/**
4
* This file is part of the CJTTERABYTESOFT yii2-widgets
5
*
6
* (c) CJT TERABYTE LLC yii2-extension <https://github.com/cjtterabytesoft/yii2-jvectormap>
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: https://github.com/cjtterabytesoft/yii2-jvectormap
11
* @author: Wilmer Arámbula <[email protected]>
12
* @copyright: (c) CJT TERABYTE LLC
13
* @Widget: [yii2-jvectormap]
14
* @Configuration [Bootstrap].
15
* @since: 0.0.1-dev
16
**/
17
18
namespace cjtterabytesoft\jvectormap;
19
20
use yii\base\BootstrapInterface;
21
22
class Bootstrap implements BootstrapInterface
23
{
24
    /** @inheritdoc */
25
    public function bootstrap($app)
26
    {
27
        /* Copy Error Images */
28
        if (\yii\helpers\BaseFileHelper::filterPath(\Yii::getAlias('@frontend/web/images'), $options = [])) {
29
            \yii\helpers\BaseFileHelper::copyDirectory(\Yii::getAlias('@cjtterabytesoft/jvectormap/images/'),
30
                \Yii::getAlias('@frontend/web/images'));
31
        }
32
    }
33
}