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.
Completed
Push — master ( 4b1269...268271 )
by Brett
07:34
created

Migration::init()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 5
nc 2
nop 0
dl 0
loc 9
rs 9.6666
c 1
b 0
f 0
1
<?php
2
3
namespace bedezign\yii2\audit\components;
4
5
use bedezign\yii2\audit\Audit;
6
7
8
/**
9
 * Class Migration
10
 * @package bedezign\yii2\audit\components
11
 */
12
class Migration extends \yii\db\Migration
13
{
14
15
    /**
16
     *
17
     */
18
    public function init()
19
    {
20
        /** @var Audit $audit */
21
        $audit = \Yii::$app->getModule('audit');
22
        if ($audit) {
23
            $this->db = $audit->db;
24
        }
25
        parent::init();
26
    }
27
28
}