| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function validationDefault(Validator $validator): Validator |
||
| 42 | { |
||
| 43 | $validator |
||
| 44 | ->notEmptyString('sender_contact') |
||
| 45 | ->add('sender_contact', [ |
||
| 46 | 'isEmail' => [ |
||
| 47 | 'rule' => ['email', true], |
||
| 48 | 'message' => __('error_email_not-valid'), |
||
| 49 | ], |
||
| 50 | ]); |
||
| 51 | |||
| 52 | return $validator; |
||
| 53 | } |
||
| 54 | } |
||
| 55 |