Conditions | 4 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function validate(VerifyReCaptcha $verify, Response $response): ?string |
||
34 | { |
||
35 | if ( |
||
36 | $verify->getExpectedAction() |
||
37 | && $response->getAction() |
||
38 | && strcasecmp($verify->getExpectedAction(), $response->getAction()) !== 0 |
||
39 | ) { |
||
40 | return self::E_ACTION_MISMATCH; |
||
41 | } |
||
42 | |||
43 | return null; |
||
44 | } |
||
46 |