| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | public function rules() |
||
| 23 | { |
||
| 24 | return [ |
||
| 25 | // name, email, subject and body are required |
||
| 26 | [['name', 'email', 'subject', 'body'], 'required'], |
||
| 27 | // email has to be a valid email address |
||
| 28 | ['email', 'email'], |
||
| 29 | // verifyCode needs to be entered correctly |
||
| 30 | ['verifyCode', 'captcha'], |
||
| 31 | ]; |
||
| 32 | } |
||
| 33 | |||
| 60 |