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.
Completed
Push — master ( 82fcf2...d8fb5e )
by Pavel
01:55
created

ItemMerge::tableName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 4
loc 4
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace tests;
3
4
use paulzi\jsonBehavior\JsonValidator;
5
use yii\db\ActiveRecord;
6
use paulzi\jsonBehavior\JsonField;
7
use paulzi\jsonBehavior\JsonBehavior;
8
9
/**
10
 * @property integer $id
11
 * @property JsonField $params
12
 *
13
 * @method static Item|null findOne($condition)
14
 * @method static Item[] findAll($condition)
15
 */
16 View Code Duplication
class ItemMerge extends ActiveRecord
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
17
{
18
    /**
19
     * @inheritdoc
20
     */
21 1
    public static function tableName()
22
    {
23 1
        return '{{%item}}';
24
    }
25
26
    /**
27
     * @inheritdoc
28
     */
29 1
    public function behaviors()
30
    {
31
        return [
32
            [
33 1
                'class'      => JsonBehavior::className(),
34 1
                'attributes' => ['params'],
35
            ]
36 1
        ];
37
    }
38
39
    /**
40
     * @inheritdoc
41
     */
42 1
    public function rules()
43
    {
44
        return [
45 1
            [['params'], JsonValidator::className(), 'merge' => true],
46 1
        ];
47
    }
48
}