Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 18 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
28 | 1 | public function rules() |
|
29 | { |
||
30 | return [ |
||
31 | 1 | ['id', 'number'], |
|
32 | 1 | ['name', 'string'], |
|
33 | 1 | ['platform', 'string'], |
|
34 | 1 | ['description', 'string'], |
|
35 | 1 | ['homepage', 'url'], |
|
36 | 1 | ['repository_url', 'url'], |
|
37 | 1 | ['normalized_licenses', 'each', 'rule' => ['string']], |
|
38 | 1 | ['rank', 'integer'], |
|
39 | 1 | ['latest_release_published_at', 'datetime', 'timestampAttribute' => 'latest_release_published_at'], |
|
40 | 1 | ['latest_release_number', 'string'], |
|
41 | 1 | ['language', 'string'], |
|
42 | 1 | ['status', 'string'], |
|
43 | 1 | ['package_manager_url', 'url'], |
|
44 | 1 | ['stars', 'integer'], |
|
45 | 1 | ['forks', 'integer'], |
|
46 | 1 | ['keywords', 'each', 'rule' => ['string']], |
|
47 | 1 | ]; |
|
48 | } |
||
49 | } |
||
50 |