Skip to content

Commit

Permalink
Merge pull request #9 from RyanDaDeng/analysis-z95696
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
RyanDaDeng committed Dec 28, 2018
2 parents 337e67b + 674f180 commit c29b8a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/GoogleReCaptchaV3.php
Expand Up @@ -9,9 +9,8 @@
namespace TimeHunter\LaravelGoogleReCaptchaV3;

use TimeHunter\LaravelGoogleReCaptchaV3\Core\GoogleReCaptchaV3Response;
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\RequestClientInterface;
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\ReCaptchaConfigV3Interface;
use TimeHunter\LaravelGoogleReCaptchaV3\Services\GoogleReCaptchaV3Service;
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\ReCaptchaConfigV3Interface;

class GoogleReCaptchaV3
{
Expand Down Expand Up @@ -50,8 +49,8 @@ public function prepareViewData($mappers)
*/
public function render($mappers)
{
if (!$this->getConfig()->isServiceEnabled()) {
return null;
if (! $this->getConfig()->isServiceEnabled()) {
return;
}
$data = $this->prepareViewData($mappers);

Expand Down Expand Up @@ -91,6 +90,7 @@ public function getConfig()
public function setAction($value = null)
{
$this->service->setAction($value);

return $this;
}
}
3 changes: 2 additions & 1 deletion src/Providers/GoogleReCaptchaV3ServiceProvider.php
Expand Up @@ -8,8 +8,8 @@
use TimeHunter\LaravelGoogleReCaptchaV3\Core\GuzzleRequestClient;
use TimeHunter\LaravelGoogleReCaptchaV3\Configurations\ReCaptchaConfigV3;
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\RequestClientInterface;
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\ReCaptchaConfigV3Interface;
use TimeHunter\LaravelGoogleReCaptchaV3\Services\GoogleReCaptchaV3Service;
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\ReCaptchaConfigV3Interface;

class GoogleReCaptchaV3ServiceProvider extends ServiceProvider
{
Expand Down Expand Up @@ -74,6 +74,7 @@ public function register()

$this->app->bind('GoogleReCaptchaV3', function () {
$service = new GoogleReCaptchaV3Service(app(ReCaptchaConfigV3Interface::class), app(RequestClientInterface::class));

return new GoogleReCaptchaV3($service);
});
}
Expand Down

0 comments on commit c29b8a5

Please sign in to comment.