Skip to content

Commit 0783b0c

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 02c4b38 + 3c90458 commit 0783b0c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

resources/lang/en/messages.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
'ERROR_ACTION' => 'Action does not match.',
88
'ERROR_SCORE_THRESHOLD' => 'Score does not meet threshold.',
99
'ERROR_TIMEOUT' => 'Timeout',
10-
'SUCCESS' => 'Successfully passed.'
11-
];
10+
'SUCCESS' => 'Successfully passed.',
11+
];

src/Providers/GoogleReCaptchaV3ServiceProvider.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class GoogleReCaptchaV3ServiceProvider extends ServiceProvider
2424
public function boot()
2525
{
2626
$this->loadViewsFrom(__DIR__.'/../../resources/views', 'GoogleReCaptchaV3');
27-
$this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'GoogleReCaptchaV3');
27+
$this->loadTranslationsFrom(__DIR__.'/../../resources/lang', 'GoogleReCaptchaV3');
2828

2929
if ($this->app->runningInConsole()) {
3030
$this->bootForConsole();
@@ -45,7 +45,6 @@ public function register()
4545
$laravel = app();
4646
$version = $laravel::VERSION;
4747

48-
4948
if (version_compare($version, '5.7.*') === 1 || version_compare($version, '5.6.*') === 1 || version_compare($version, '5.5.*') === 1) {
5049
if (! $this->app->has(ReCaptchaConfigV3Interface::class)) {
5150
$this->bindConfig();
@@ -124,7 +123,7 @@ protected function bootForConsole()
124123
// Publishing the lang file.
125124
$this->publishes([
126125
__DIR__.'/../../resources/lang' => resource_path('lang/vendor/LaravelGoogleReCaptchaV3'),
127-
],'googlerecaptchav3.lang');
126+
], 'googlerecaptchav3.lang');
128127
}
129128

130129
/**
@@ -136,7 +135,7 @@ public function provides()
136135
{
137136
// define a list of provider names
138137
return [
139-
'GoogleReCaptchaV3'
138+
'GoogleReCaptchaV3',
140139
];
141140
}
142141
}

tests/ConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace TimeHunter\Tests;
44

5-
use Illuminate\Support\Facades\Lang;
65
use PHPUnit\Framework\TestCase;
6+
use Illuminate\Support\Facades\Lang;
77
use TimeHunter\LaravelGoogleReCaptchaV3\GoogleReCaptchaV3;
88
use TimeHunter\LaravelGoogleReCaptchaV3\Core\GuzzleRequestClient;
99
use TimeHunter\LaravelGoogleReCaptchaV3\Core\GoogleReCaptchaV3Response;

0 commit comments

Comments
 (0)