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 — enhance/generation ( 245bdd )
by Alexander
13:56
created

m151218_203419_property_title_prepend   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 8 1
A down() 0 7 1
1
<?php
2
3
use app\models\PropertyStaticValues;
4
use yii\db\Migration;
5
6
class m151218_203419_property_title_prepend 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...
7
{
8
    public function up()
9
    {
10
        $this->addColumn(
11
            PropertyStaticValues::tableName(),
12
            "title_prepend",
13
            $this->smallInteger(1)->notNull()->defaultValue(0)
14
        );
15
    }
16
17
    public function down()
18
    {
19
        $this->dropColumn(
20
            PropertyStaticValues::tableName(),
21
            "title_prepend"
22
        );
23
    }
24
}
25