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.
Passed
Push — master ( 0bb65b...0d3847 )
by Alexander
06:33
created

m161221_195847_ability_to_disable_navigation_elements   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 8 1
A down() 0 7 1
1
<?php
2
3
use yii\db\Migration;
4
5
class m161221_195847_ability_to_disable_navigation_elements extends Migration
6
{
7
    public function up()
8
    {
9
        $this->addColumn(
10
            \app\widgets\navigation\models\Navigation::tableName(),
11
            "active",
12
            self::boolean()->notNull()->defaultValue(true)
13
        );
14
    }
15
16
    public function down()
17
    {
18
        $this->dropColumn(
19
            \app\widgets\navigation\models\Navigation::tableName(),
20
            "active"
21
        );
22
    }
23
}
24