Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 4 | public function rules() |
|
26 | { |
||
27 | return [ |
||
28 | 4 | 'cust_id' => 'required|exists:customers,cust_id', |
|
29 | 'name' => 'required|string', |
||
30 | 'email' => 'nullable|email', |
||
31 | 'shared' => 'required|boolean', |
||
32 | 'customer_contact_phones' => 'nullable|array', |
||
33 | 'customer_contact_phones.phone_type_id' => 'exits:phone_number_types,phone_type_id', |
||
34 | ]; |
||
37 |