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_000001_create_audit_entry   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 17 2
A down() 0 4 1
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_000001_create_audit_entry extends Migration
9
{
10
    const TABLE = '{{%audit_entry}}';
11
12
    public function up()
13
    {
14
        $this->createTable(self::TABLE, [
15
            'id'                => Schema::TYPE_PK,
16
            'created'           => Schema::TYPE_DATETIME . ' NOT NULL',
17
            'user_id'           => Schema::TYPE_INTEGER . ' DEFAULT 0',
18
            'duration'          => Schema::TYPE_FLOAT . ' NULL',
19
            'ip'                => Schema::TYPE_STRING . '(45) NULL',
20
            'request_method'    => Schema::TYPE_STRING . '(16) NULL',
21
            'ajax'              => Schema::TYPE_INTEGER . '(1) DEFAULT 0 NOT NULL',
22
            'route'             => Schema::TYPE_STRING . '(255) NULL',
23
            'memory_max'        => Schema::TYPE_INTEGER . ' NULL',
24
        ], ($this->db->driverName === 'mysql' ? 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB' : null));
25
26
        $this->createIndex('idx_user_id', self::TABLE, ['user_id']);
27
        $this->createIndex('idx_route', self::TABLE, ['route']);
28
    }
29
30
    public function down()
31
    {
32
        $this->dropTable(self::TABLE);
33
    }
34
}
35