| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function rules() |
||
| 25 | { |
||
| 26 | return [ |
||
| 27 | 'name' => 'required', |
||
| 28 | 'renews_in' => 'integer', |
||
| 29 | 'location' => 'required_if:assign,meeting', |
||
| 30 | 'start' => 'required_if:assign,meeting|date', |
||
| 31 | 'end' => 'required_if:assign,meeting|date', |
||
| 32 | 'due_date' => 'required_if:assign,due_date|date', |
||
| 33 | ]; |
||
| 34 | } |
||
| 35 | |||
| 51 |