Skip to content

Commit 82aaac4

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents cc30d94 + a3f88ef commit 82aaac4

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/Configurations/ReCaptchaConfigV3.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66

77
class ReCaptchaConfigV3 implements ReCaptchaConfigV3Interface
88
{
9-
109
/**
1110
* @return string
1211
*/
13-
public function getRequestMethod(){
12+
public function getRequestMethod()
13+
{
1414
return config('googlerecaptchav3.request_method');
1515
}
16+
1617
/**
1718
* @return string
1819
*/

src/GoogleReCaptchaV3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function prepareViewData($mappers)
5353
public function render($mappers)
5454
{
5555
if (! $this->config->isServiceEnabled()) {
56-
return null;
56+
return;
5757
}
5858
$data = $this->prepareViewData($mappers);
5959

src/Providers/GoogleReCaptchaV3ServiceProvider.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace TimeHunter\LaravelGoogleCaptchaV3\Providers;
44

55
use Illuminate\Support\ServiceProvider;
6-
use TimeHunter\LaravelGoogleCaptchaV3\Core\CurlRequestClient;
76
use TimeHunter\LaravelGoogleCaptchaV3\GoogleReCaptchaV3;
7+
use TimeHunter\LaravelGoogleCaptchaV3\Core\CurlRequestClient;
88
use TimeHunter\LaravelGoogleCaptchaV3\Core\GuzzleRequestClient;
99
use TimeHunter\LaravelGoogleCaptchaV3\Configurations\ReCaptchaConfigV3;
1010
use TimeHunter\LaravelGoogleCaptchaV3\Interfaces\RequestClientInterface;
@@ -22,7 +22,7 @@ class GoogleReCaptchaV3ServiceProvider extends ServiceProvider
2222
*/
2323
public function boot()
2424
{
25-
$this->loadViewsFrom(__DIR__ . '/../../resources/views', 'GoogleReCaptchaV3');
25+
$this->loadViewsFrom(__DIR__.'/../../resources/views', 'GoogleReCaptchaV3');
2626

2727
if ($this->app->runningInConsole()) {
2828
$this->bootForConsole();
@@ -37,18 +37,18 @@ public function boot()
3737
public function register()
3838
{
3939
$this->mergeConfigFrom(
40-
__DIR__ . '/../../config/googlerecaptchav3.php', 'googlerecaptchav3'
40+
__DIR__.'/../../config/googlerecaptchav3.php', 'googlerecaptchav3'
4141
);
4242

43-
if (!$this->app->has(ReCaptchaConfigV3Interface::class)) {
43+
if (! $this->app->has(ReCaptchaConfigV3Interface::class)) {
4444
$this->app->bind(
4545
ReCaptchaConfigV3Interface::class,
4646
ReCaptchaConfigV3::class
4747
);
4848
}
4949

5050
// default strategy
51-
if (!$this->app->has(RequestClientInterface::class)) {
51+
if (! $this->app->has(RequestClientInterface::class)) {
5252
switch ($this->app->get(ReCaptchaConfigV3Interface::class)->getRequestMethod()) {
5353
case 'guzzle':
5454
$this->app->bind(
@@ -85,7 +85,7 @@ protected function bootForConsole()
8585
{
8686
// Publishing the configuration file.
8787
$this->publishes([
88-
__DIR__ . '/../../config/googlerecaptchav3.php' => config_path('googlerecaptchav3.php'),
88+
__DIR__.'/../../config/googlerecaptchav3.php' => config_path('googlerecaptchav3.php'),
8989
], 'googlerecaptchav3.config');
9090
}
9191

0 commit comments

Comments
 (0)