@@ -23,7 +23,7 @@ class GoogleReCaptchaV2ServiceProvider extends ServiceProvider
23
23
*/
24
24
public function boot ()
25
25
{
26
- $ this ->loadViewsFrom (__DIR__ . '/../../resources/views ' , 'GoogleReCaptchaV2 ' );
26
+ $ this ->loadViewsFrom (__DIR__ . '/../../resources/views ' , 'GoogleReCaptchaV2 ' );
27
27
28
28
if ($ this ->app ->runningInConsole ()) {
29
29
$ this ->bootForConsole ();
@@ -73,19 +73,18 @@ public function bindRequest($method)
73
73
public function register ()
74
74
{
75
75
$ this ->mergeConfigFrom (
76
- __DIR__ . '/../../config/googlerecaptchav2.php ' , 'googlerecaptchav2 '
76
+ __DIR__ . '/../../config/googlerecaptchav2.php ' , 'googlerecaptchav2 '
77
77
);
78
78
79
79
$ laravel = app ();
80
80
$ version = $ laravel ::VERSION ;
81
81
82
82
if (version_compare ($ version , '5.7.* ' ) === 1 || version_compare ($ version , '5.6.* ' ) === 1 || version_compare ($ version , '5.5.* ' ) === 1 ) {
83
-
84
- if (!$ this ->app ->has (ReCaptchaConfigV2Interface::class)) {
83
+ if (! $ this ->app ->has (ReCaptchaConfigV2Interface::class)) {
85
84
$ this ->bindConfig ();
86
85
}
87
86
// default strategy
88
- if (!$ this ->app ->has (RequestClientInterface::class)) {
87
+ if (! $ this ->app ->has (RequestClientInterface::class)) {
89
88
switch ($ this ->app ->get (ReCaptchaConfigV2Interface::class)->getRequestMethod ()) {
90
89
case 'guzzle ' :
91
90
$ this ->app ->bind (
@@ -128,12 +127,12 @@ protected function bootForConsole()
128
127
{
129
128
// Publishing the configuration file.
130
129
$ this ->publishes ([
131
- __DIR__ . '/../../config/googlerecaptchav2.php ' => config_path ('googlerecaptchav2.php ' ),
130
+ __DIR__ . '/../../config/googlerecaptchav2.php ' => config_path ('googlerecaptchav2.php ' ),
132
131
], 'googlerecaptchav2.config ' );
133
132
134
133
// Publishing the views.
135
134
$ this ->publishes ([
136
- __DIR__ . '/../../resources/views ' => base_path ('resources/views ' ),
135
+ __DIR__ . '/../../resources/views ' => base_path ('resources/views ' ),
137
136
], 'googlerecaptchav2.views ' );
138
137
}
139
138
0 commit comments