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
Pull Request — master (#267)
by
unknown
11:15
created

m150626_000005_create_audit_javascript::up()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
nc 2
nop 0
dl 0
loc 16
rs 9.7333
c 0
b 0
f 0
1
<?php
2
3
namespace bedezign\yii2\audit\migrations;
4
5
use bedezign\yii2\audit\components\Migration;
6
use yii\db\Schema;
7
8
class m150626_000005_create_audit_javascript extends Migration
9
{
10
    const TABLE = '{{%audit_javascript}}';
11
12
    public function up()
13
    {
14
        $this->createTable(self::TABLE, [
15
            'id'         => Schema::TYPE_PK,
16
            'entry_id'   => Schema::TYPE_INTEGER . ' NOT NULL',
17
            'created'    => Schema::TYPE_DATETIME . ' NOT NULL',
18
            'type'       => Schema::TYPE_STRING . '(20) NOT NULL',
19
            'message'    => Schema::TYPE_TEXT . ' NOT NULL',
20
            'origin'     => Schema::TYPE_STRING . '(512)',
21
            'data'       => Schema::TYPE_BINARY,
22
        ], $this->db->driverName === 'mysql' ? 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB' : null);
23
24
        if ($this->db->driverName != 'sqlite') {
25
            $this->addForeignKey('fk_audit_javascript_entry_id', self::TABLE, ['entry_id'], '{{%audit_entry}}', 'id');
26
        }
27
    }
28
29
    public function down()
30
    {
31
        if ($this->db->driverName != 'sqlite') {
32
            $this->dropForeignKey('fk_audit_javascript_entry_id', self::TABLE);
33
        }
34
        $this->dropTable(self::TABLE);
35
    }
36
}
37