Skip to content

Commit

Permalink
Change method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Aug 2, 2021
1 parent eefea6b commit 3b08c58
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Captcha/ReCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}");

Expand All @@ -62,15 +61,15 @@ public function key(): string
/**
* Get the captcha's secret key.
*/
public function secret(): string
protected function secret(): string
{
return config('livewire-forms.captcha.secret');
}

/**
* 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';
}
Expand Down

0 comments on commit 3b08c58

Please sign in to comment.