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