| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function rules(): array |
||
| 29 | { |
||
| 30 | return [ |
||
|
|
|||
| 31 | '*.id' => 'present', |
||
| 32 | '*.criteria_type_id' => ['required', new ValidIdRule(CriteriaType::class)], |
||
| 33 | '*.skill_id' => ['required', new ValidIdRule(Skill::class)], |
||
| 34 | '*.skill_level_id' => ['required', new ValidIdRule(SkillLevel::class)], |
||
| 35 | '*.en.description' => 'nullable|string', |
||
| 36 | '*.en.specificity' => 'nullable|string', |
||
| 37 | '*.fr.description' => 'nullable|string', |
||
| 38 | '*.fr.specificity' => 'nullable|string', |
||
| 39 | ]; |
||
| 42 |