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