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 ( d226c8...d4855c )
by Ivan
10:07
created

m160411_141737_resize_images   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 5 1
A down() 0 5 1
1
<?php
2
3
use app\modules\image\models\ThumbnailSize;
4
use Imagine\Image\ManipulatorInterface;
5
use yii\db\Migration;
6
7
class m160411_141737_resize_images extends Migration
8
{
9
    public function up()
10
    {
11
        $mods = implode("','", [ManipulatorInterface::THUMBNAIL_INSET, ManipulatorInterface::THUMBNAIL_OUTBOUND, ThumbnailSize::RESIZE]);
0 ignored issues
show
Coding Style introduced by
This line exceeds maximum limit of 120 characters; contains 137 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
12
        $this->alterColumn(ThumbnailSize::tableName(), 'resize_mode', "ENUM ('$mods') DEFAULT '" . ManipulatorInterface::THUMBNAIL_INSET . "'");
0 ignored issues
show
Coding Style introduced by
This line exceeds maximum limit of 120 characters; contains 144 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
13
    }
14
15
    public function down()
16
    {
17
        $mods = implode("','", [ManipulatorInterface::THUMBNAIL_INSET, ManipulatorInterface::THUMBNAIL_OUTBOUND]);
18
        $this->alterColumn(ThumbnailSize::tableName(), 'resize_mode', "ENUM ('$mods') DEFAULT '" . ManipulatorInterface::THUMBNAIL_INSET . "'");
0 ignored issues
show
Coding Style introduced by
This line exceeds maximum limit of 120 characters; contains 144 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
19
    }
20
21
    /*
22
    // Use safeUp/safeDown to run migration code within a transaction
23
    public function safeUp()
24
    {
25
    }
26
27
    public function safeDown()
28
    {
29
    }
30
    */
31
}
32