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.
Test Setup Failed
Push — email_fix ( a1c2be )
by
unknown
09:01
created

m151217_065513_formSubjectTemplate   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 31
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 9 1
A down() 0 7 1
1
<?php
2
3
use yii\db\Migration;
4
5
class m151217_065513_formSubjectTemplate extends Migration
1 ignored issue
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
6
{
7
    public function up()
8
    {
9
        $this->addColumn(
10
            '{{%form%}}',
11
            'subject_template',
12
            $this->string()->notNull()->defaultValue('{form_name} #{id}')
13
        );
14
15
    }
16
17
    public function down()
18
    {
19
        $this->dropColumn(
20
            '{{%form%}}',
21
            'subject_template'
22
        );
23
    }
24
25
    /*
26
    // Use safeUp/safeDown to run migration code within a transaction
27
    public function safeUp()
28
    {
29
    }
30
31
    public function safeDown()
32
    {
33
    }
34
    */
35
}
36