Skip to content

Commit c29b8a5

Browse files
authored
Merge pull request #9 from RyanDaDeng/analysis-z95696
Apply fixes from StyleCI
2 parents 337e67b + 674f180 commit c29b8a5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/GoogleReCaptchaV3.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
namespace TimeHunter\LaravelGoogleReCaptchaV3;
1010

1111
use TimeHunter\LaravelGoogleReCaptchaV3\Core\GoogleReCaptchaV3Response;
12-
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\RequestClientInterface;
13-
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\ReCaptchaConfigV3Interface;
1412
use TimeHunter\LaravelGoogleReCaptchaV3\Services\GoogleReCaptchaV3Service;
13+
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\ReCaptchaConfigV3Interface;
1514

1615
class GoogleReCaptchaV3
1716
{
@@ -50,8 +49,8 @@ public function prepareViewData($mappers)
5049
*/
5150
public function render($mappers)
5251
{
53-
if (!$this->getConfig()->isServiceEnabled()) {
54-
return null;
52+
if (! $this->getConfig()->isServiceEnabled()) {
53+
return;
5554
}
5655
$data = $this->prepareViewData($mappers);
5756

@@ -91,6 +90,7 @@ public function getConfig()
9190
public function setAction($value = null)
9291
{
9392
$this->service->setAction($value);
93+
9494
return $this;
9595
}
9696
}

src/Providers/GoogleReCaptchaV3ServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
use TimeHunter\LaravelGoogleReCaptchaV3\Core\GuzzleRequestClient;
99
use TimeHunter\LaravelGoogleReCaptchaV3\Configurations\ReCaptchaConfigV3;
1010
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\RequestClientInterface;
11-
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\ReCaptchaConfigV3Interface;
1211
use TimeHunter\LaravelGoogleReCaptchaV3\Services\GoogleReCaptchaV3Service;
12+
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\ReCaptchaConfigV3Interface;
1313

1414
class GoogleReCaptchaV3ServiceProvider extends ServiceProvider
1515
{
@@ -74,6 +74,7 @@ public function register()
7474

7575
$this->app->bind('GoogleReCaptchaV3', function () {
7676
$service = new GoogleReCaptchaV3Service(app(ReCaptchaConfigV3Interface::class), app(RequestClientInterface::class));
77+
7778
return new GoogleReCaptchaV3($service);
7879
});
7980
}

0 commit comments

Comments
 (0)