Skip to content

Commit 2095c7b

Browse files
authored
Merge pull request #14 from RyanDaDeng/analysis-8LeZLK
Apply fixes from StyleCI
2 parents 294eba8 + a64516d commit 2095c7b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/Providers/GoogleReCaptchaV3ServiceProvider.php

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class GoogleReCaptchaV3ServiceProvider extends ServiceProvider
2323
*/
2424
public function boot()
2525
{
26-
$this->loadViewsFrom(__DIR__ . '/../../resources/views', 'GoogleReCaptchaV3');
26+
$this->loadViewsFrom(__DIR__.'/../../resources/views', 'GoogleReCaptchaV3');
2727

2828
if ($this->app->runningInConsole()) {
2929
$this->bootForConsole();
@@ -38,37 +38,34 @@ public function boot()
3838
public function register()
3939
{
4040
$this->mergeConfigFrom(
41-
__DIR__ . '/../../config/googlerecaptchav3.php', 'googlerecaptchav3'
41+
__DIR__.'/../../config/googlerecaptchav3.php', 'googlerecaptchav3'
4242
);
4343

4444
$laravel = app();
4545
$version = $laravel::VERSION;
4646

4747
if (version_compare($version, '5.7.*') === 1 || version_compare($version, '5.6.*') === 1 || version_compare($version, '5.5.*') === 1) {
48-
49-
if (!$this->app->has(ReCaptchaConfigV3Interface::class)) {
48+
if (! $this->app->has(ReCaptchaConfigV3Interface::class)) {
5049
$this->bindConfig();
5150
}
5251

53-
if (!$this->app->has(RequestClientInterface::class)) {
52+
if (! $this->app->has(RequestClientInterface::class)) {
5453
$this->bindRequest($this->app->get(ReCaptchaConfigV3Interface::class)->getRequestMethod());
5554
}
5655
} else {
5756
$this->bindConfig();
5857
$this->bindRequest(app(ReCaptchaConfigV3Interface::class)->getRequestMethod());
5958
}
6059

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

6563
return new GoogleReCaptchaV3($service);
6664
});
67-
6865
}
6966

7067
/**
71-
* Bind config
68+
* Bind config.
7269
*/
7370
public function bindConfig()
7471
{
@@ -114,12 +111,12 @@ protected function bootForConsole()
114111
{
115112
// Publishing the configuration file.
116113
$this->publishes([
117-
__DIR__ . '/../../config/googlerecaptchav3.php' => config_path('googlerecaptchav3.php'),
114+
__DIR__.'/../../config/googlerecaptchav3.php' => config_path('googlerecaptchav3.php'),
118115
], 'googlerecaptchav3.config');
119116

120117
// Publishing the vue component file.
121118
$this->publishes([
122-
__DIR__ . '/../../vuejs/GoogleReCaptchaV3.vue' => resource_path('js/components/googlerecaptchav3/GoogleReCaptchaV3.vue'),
119+
__DIR__.'/../../vuejs/GoogleReCaptchaV3.vue' => resource_path('js/components/googlerecaptchav3/GoogleReCaptchaV3.vue'),
123120
], 'googlerecaptchav3.vuejs');
124121
}
125122

0 commit comments

Comments
 (0)