← All changes
|
backend/src/Services/Security/Recaptcha/RecaptchaService.php
+0
-7
0.9
→
1.5
View file →
| @@ -6,13 +6,8 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | namespace IvyForms\Services\Security\Recaptcha; |
| 9 | 9 | |
| 10 | -// phpcs:disable PSR1.Files.SideEffects | |
| 11 | -if (!defined('ABSPATH')) { | |
| 12 | - exit; // Exit if accessed directly | |
| 13 | -} | |
| 14 | - | |
| 15 | 10 | use IvyForms\Common\Exceptions\ForbiddenException; |
| 16 | 11 | use IvyForms\Services\Security\Common\CaptchaServiceInterface; |
| 17 | 12 | use IvyForms\Services\Security\Common\IpDetectionService; |
| 18 | 13 | use IvyForms\Services\Settings\SettingsService; |
| @@ -287,10 +282,8 @@ | ||
| 287 | 282 | ) |
| 288 | 283 | ); |
| 289 | 284 | } |
| 290 | 285 | } |
| 291 | - | |
| 292 | - | |
| 293 | 286 | /** |
| 294 | 287 | * Validate reCAPTCHA key format |
| 295 | 288 | * |
| 296 | 289 | * @param string $key |