Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler authored and github-actions[bot] committed Sep 30, 2022
1 parent 2138c91 commit 5194dcf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/LaravelCloudflareTurnstileServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function packageBooted()
});

Blade::directive('turnstile', function () {
return '<div class="cf-turnstile" data-sitekey="' . config('services.turnstile.key') . '"></div>';
return '<div class="cf-turnstile" data-sitekey="'.config('services.turnstile.key').'"></div>';
});

Rule::macro('turnstile', function () {
Expand Down
3 changes: 2 additions & 1 deletion src/Responses/SiteverifyResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ class SiteverifyResponse implements Arrayable
public function __construct(
public readonly bool $success,
public readonly array $errorCodes,
) {}
) {
}

public function toArray(): array
{
Expand Down
4 changes: 2 additions & 2 deletions src/Rules/Turnstile.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace RyanChandler\LaravelCloudflareTurnstile\Rules;

use Illuminate\Contracts\Validation\InvokableRule;
use Illuminate\Contracts\Validation\Rule;
use RyanChandler\LaravelCloudflareTurnstile\TurnstileClient;

Expand All @@ -12,7 +11,8 @@ class Turnstile implements Rule

public function __construct(
protected TurnstileClient $turnstile,
) {}
) {
}

public function passes($attribute, $value)
{
Expand Down
3 changes: 2 additions & 1 deletion src/TurnstileClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ class TurnstileClient
{
public function __construct(
protected string $secret,
) {}
) {
}

public function siteverify(string $response): SiteverifyResponse
{
Expand Down

0 comments on commit 5194dcf

Please sign in to comment.