3
3
namespace TimeHunter \LaravelGoogleCaptchaV3 \Providers ;
4
4
5
5
use Illuminate \Support \ServiceProvider ;
6
- use TimeHunter \LaravelGoogleCaptchaV3 \Core \CurlRequestClient ;
7
6
use TimeHunter \LaravelGoogleCaptchaV3 \GoogleReCaptchaV3 ;
7
+ use TimeHunter \LaravelGoogleCaptchaV3 \Core \CurlRequestClient ;
8
8
use TimeHunter \LaravelGoogleCaptchaV3 \Core \GuzzleRequestClient ;
9
9
use TimeHunter \LaravelGoogleCaptchaV3 \Configurations \ReCaptchaConfigV3 ;
10
10
use TimeHunter \LaravelGoogleCaptchaV3 \Interfaces \RequestClientInterface ;
@@ -22,7 +22,7 @@ class GoogleReCaptchaV3ServiceProvider extends ServiceProvider
22
22
*/
23
23
public function boot ()
24
24
{
25
- $ this ->loadViewsFrom (__DIR__ . '/../../resources/views ' , 'GoogleReCaptchaV3 ' );
25
+ $ this ->loadViewsFrom (__DIR__ . '/../../resources/views ' , 'GoogleReCaptchaV3 ' );
26
26
27
27
if ($ this ->app ->runningInConsole ()) {
28
28
$ this ->bootForConsole ();
@@ -37,18 +37,18 @@ public function boot()
37
37
public function register ()
38
38
{
39
39
$ this ->mergeConfigFrom (
40
- __DIR__ . '/../../config/googlerecaptchav3.php ' , 'googlerecaptchav3 '
40
+ __DIR__ . '/../../config/googlerecaptchav3.php ' , 'googlerecaptchav3 '
41
41
);
42
42
43
- if (!$ this ->app ->has (ReCaptchaConfigV3Interface::class)) {
43
+ if (! $ this ->app ->has (ReCaptchaConfigV3Interface::class)) {
44
44
$ this ->app ->bind (
45
45
ReCaptchaConfigV3Interface::class,
46
46
ReCaptchaConfigV3::class
47
47
);
48
48
}
49
49
50
50
// default strategy
51
- if (!$ this ->app ->has (RequestClientInterface::class)) {
51
+ if (! $ this ->app ->has (RequestClientInterface::class)) {
52
52
switch ($ this ->app ->get (ReCaptchaConfigV3Interface::class)->getRequestMethod ()) {
53
53
case 'guzzle ' :
54
54
$ this ->app ->bind (
@@ -85,7 +85,7 @@ protected function bootForConsole()
85
85
{
86
86
// Publishing the configuration file.
87
87
$ this ->publishes ([
88
- __DIR__ . '/../../config/googlerecaptchav3.php ' => config_path ('googlerecaptchav3.php ' ),
88
+ __DIR__ . '/../../config/googlerecaptchav3.php ' => config_path ('googlerecaptchav3.php ' ),
89
89
], 'googlerecaptchav3.config ' );
90
90
}
91
91
0 commit comments