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.

Item   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 25
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A behaviors() 0 9 1
A rules() 0 6 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
class Item extends ActiveRecord
17
{
18
    /**
19
     * @inheritdoc
20
     */
21 5
    public function behaviors()
22
    {
23
        return [
24
            [
25 5
                'class'      => JsonBehavior::className(),
26 5
                'attributes' => ['params'],
27
            ]
28 5
        ];
29
    }
30
31
    /**
32
     * @inheritdoc
33
     */
34 1
    public function rules()
35
    {
36
        return [
37 1
            [['params'], JsonValidator::className()],
38 1
        ];
39
    }
40
}