Completed
Push — master ( a1dcb3...8247ab )
by Andrii
02:30
created

Repo::prepare()   A

Complexity

Conditions 4
Paths 6

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 4

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 10
cts 10
cp 1
rs 9.2
c 0
b 0
f 0
cc 4
eloc 7
nc 6
nop 2
crap 4
1
<?php
2
/**
3
 * GitHub API implementation for yii2-hiart
4
 *
5
 * @link      https://github.com/hiqdev/yii2-hiart-github
6
 * @package   yii2-hiart-github
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\hiart\github\models;
12
13
use hiqdev\hiart\github\ActiveRecord;
14
15
/**
16
 * GitHub repository.
17
 * See [documentation](https://developer.github.com/v3/repos/).
18
 *
19
 * @author Andrii Vasyliev <[email protected]>
20
 */
21
class Repo extends ActiveRecord
22
{
23 2
    public function rules()
24
    {
25
        return [
26 2
            ['id', 'integer'],
27 2
            ['name', 'string'],
28 2
        ];
29
    }
30
}
31