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 — filters ( 4118ab...b57792 )
by Alexander
13:21
created

m151215_101221_aceWidget   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
B up() 0 24 1
A down() 0 9 1
1
<?php
2
3
use yii\db\Migration;
4
use yii\helpers\Json;
5
6
class m151215_101221_aceWidget 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
11
        $this->insert(
12
            '{{%wysiwyg%}}',
13
            [
14
                'name' => 'Ace',
15
                'class_name' => 'devgroup\ace\Ace',
16
                'params' => Json::encode([
17
                    'mode' => 'html',
18
                    'theme' => 'chrome',
19
                    'jsOptions' => [
20
                        'wrap' => true,
21
                    ],
22
                    'htmlOptions' => [
23
                        'width' => '100%',
24
                        'height' => '200px'
25
                    ]
26
                ]),
27
                'configuration_model' => null,
28
                'configuration_view' => null
29
            ]
30
        );
31
    }
32
33
    public function down()
34
    {
35
       $this->delete(
36
           '{{%wysiwyg%}}',
37
           [
38
               'name' => 'Ace',
39
           ]
40
       );
41
    }
42
43
    /*
44
    // Use safeUp/safeDown to run migration code within a transaction
45
    public function safeUp()
46
    {
47
    }
48
49
    public function safeDown()
50
    {
51
    }
52
    */
53
}
54