| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | public function rules() |
||
| 46 | { |
||
| 47 | return [ |
||
| 48 | // name, email, subject and body are required |
||
| 49 | [['name', 'email', 'subject', 'body'], 'required'], |
||
| 50 | // email has to be a valid email address |
||
| 51 | ['email', 'email'], |
||
| 52 | // verifyCode needs to be entered correctly |
||
| 53 | ['verifyCode', 'captcha'], |
||
| 54 | ]; |
||
| 55 | } |
||
| 56 | |||
| 83 |