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 — master ( 8fc7ab...427cf2 )
by Alexander
36:23 queued 18:33
created

m151217_080426_TextareaWidget::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
use yii\db\Migration;
4
use app\modules\core\models\Wysiwyg;
5
6
class m151217_080426_TextareaWidget 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
        $wysiwyg = new Wysiwyg();
11
        $wysiwyg->class_name = 'app\widgets\TextareaWidget';
12
        $wysiwyg->name = 'Textarea';
13
        $wysiwyg->params = json_encode([
14
            'htmlOptions' => [
15
                'class' => 'form-control',
16
                'style' => 'height: 200px;'
17
            ]
18
        ]);
19
        $wysiwyg->save();
20
    }
21
22
    public function down()
23
    {
24
        Wysiwyg::deleteAll(['class_name' => 'app\widgets\TextareaWidget']);
25
        return true;
26
    }
27
}
28