GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Bootstrap   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 12 2
1
<?php
2
3
/**
4
 * @author AIZAWA Hina <[email protected]>
5
 * @copyright 2015 by AIZAWA Hina <[email protected]>
6
 * @license https://github.com/fetus-hina/yii2-jp-postalcode-validator/blob/master/LICENSE MIT
7
 * @since 1.0.0
8
 */
9
10
namespace jp3cki\yii2\jppostalcode\internal;
11
12
use Yii;
13
use yii\base\Application;
14
use yii\base\BootstrapInterface;
15
16
class Bootstrap implements BootstrapInterface
17
{
18
    public function bootstrap($app)
19
    {
20
        Yii::setAlias('@jp3ckiJpPostalCodeMessages', __DIR__ . '/../../messages');
21
        $i18n = $app->i18n;
22
        if (!isset($i18n->translations['jp3ckiJpPostalCode'])) {
23
            $i18n->translations['jp3ckiJpPostalCode'] = [
24
                'class' => 'yii\i18n\PhpMessageSource',
25
                'sourceLanguage' => 'en-US',
26
                'basePath' => '@jp3ckiJpPhoneMessages',
27
            ];
28
        }
29
    }
30
}
31