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