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