Bootstrap   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 14
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 7 1
1
<?php
2
/**
3
 * Bootstrap.php
4
 * @author Roman Revin http://phptime.ru
5
 */
6
7
namespace rmrevin\yii\module\File;
8
9
/**
10
 * Class Bootstrap
11
 * @package rmrevin\yii\module\File
12
 */
13
class Bootstrap implements \yii\base\BootstrapInterface
14
{
15
16
    /**
17
     * @inheritdoc
18
     */
19 15
    public function bootstrap($app)
0 ignored issues
show
Coding Style Best Practice introduced by
Please use __construct() instead of a PHP4-style constructor that is named after the class.
Loading history...
20
    {
21 15
        $app->getI18n()->translations['service-file'] = \Yii::createObject([
22 15
            'class' => \yii\i18n\PhpMessageSource::className(),
23 15
            'basePath' => '@vendor/rmrevin/yii2-file/messages',
24 15
        ]);
25
    }
26
}