File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 99namespace TimeHunter \LaravelGoogleReCaptchaV3 ;
1010
1111use TimeHunter \LaravelGoogleReCaptchaV3 \Core \GoogleReCaptchaV3Response ;
12- use TimeHunter \LaravelGoogleReCaptchaV3 \Interfaces \RequestClientInterface ;
13- use TimeHunter \LaravelGoogleReCaptchaV3 \Interfaces \ReCaptchaConfigV3Interface ;
1412use TimeHunter \LaravelGoogleReCaptchaV3 \Services \GoogleReCaptchaV3Service ;
13+ use TimeHunter \LaravelGoogleReCaptchaV3 \Interfaces \ReCaptchaConfigV3Interface ;
1514
1615class 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}
Original file line number Diff line number Diff line change 88use TimeHunter \LaravelGoogleReCaptchaV3 \Core \GuzzleRequestClient ;
99use TimeHunter \LaravelGoogleReCaptchaV3 \Configurations \ReCaptchaConfigV3 ;
1010use TimeHunter \LaravelGoogleReCaptchaV3 \Interfaces \RequestClientInterface ;
11- use TimeHunter \LaravelGoogleReCaptchaV3 \Interfaces \ReCaptchaConfigV3Interface ;
1211use TimeHunter \LaravelGoogleReCaptchaV3 \Services \GoogleReCaptchaV3Service ;
12+ use TimeHunter \LaravelGoogleReCaptchaV3 \Interfaces \ReCaptchaConfigV3Interface ;
1313
1414class 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 }
You can’t perform that action at this time.
0 commit comments