| Total Complexity | 8 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class TurnstileService |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Verify Cloudflare Turnstile token |
||
| 11 | */ |
||
| 12 | public static function verify(string $token, ?string $remoteIp = null): bool |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get the Turnstile HTML widget |
||
| 39 | */ |
||
| 40 | public static function display(array $attributes = []): string |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Get the Turnstile JavaScript |
||
| 67 | */ |
||
| 68 | public static function renderJs(): string |
||
| 73 |