From 3b08c58bfc1e471e93e2450d2d0eddd68960617b Mon Sep 17 00:00:00 2001 From: Michael Aerni Date: Mon, 2 Aug 2021 12:33:40 +0200 Subject: [PATCH] Change method visibility --- src/Captcha/ReCaptcha.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Captcha/ReCaptcha.php b/src/Captcha/ReCaptcha.php index 9b9ee13a..d0cde99b 100644 --- a/src/Captcha/ReCaptcha.php +++ b/src/Captcha/ReCaptcha.php @@ -3,7 +3,6 @@ namespace Aerni\LivewireForms\Captcha; use Illuminate\Support\Facades\Http; -use Illuminate\Support\Facades\View; use Illuminate\Support\Facades\Cache; class ReCaptcha @@ -36,7 +35,7 @@ public function verifyResponse(string $response, string $clientIp): bool /** * Check if the verified response is valid. */ - public function isValid(string $response): bool + protected function isValid(string $response): bool { $verifiedResponse = Cache::get("captcha:response:{$response}"); @@ -62,7 +61,7 @@ public function key(): string /** * Get the captcha's secret key. */ - public function secret(): string + protected function secret(): string { return config('livewire-forms.captcha.secret'); } @@ -70,7 +69,7 @@ public function secret(): string /** * Get the URL that's used to verify the captcha. */ - public function verificationUrl(): string + protected function verificationUrl(): string { return 'https://www.google.com/recaptcha/api/siteverify'; }