Skip to content

Commit cf2aaf1

Browse files
authored
Merge pull request #6 from RyanDaDeng/analysis-qgb6wd
Apply fixes from StyleCI
2 parents 8b4a31e + b593b7a commit cf2aaf1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/GoogleReCaptchaV2.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ public function prepareViewData($ids = [])
5353
*/
5454
public function render(...$ids)
5555
{
56-
if (!$this->getConfig()->isServiceEnabled()) {
56+
if (! $this->getConfig()->isServiceEnabled()) {
5757
return;
5858
}
5959
$data = $this->prepareViewData($ids);
60+
6061
return app('view')->make($this->getConfig()->getTemplate(), $data);
6162
}
6263

src/Providers/GoogleReCaptchaV2ServiceProvider.php

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

2828
if ($this->app->runningInConsole()) {
2929
$this->bootForConsole();
@@ -73,19 +73,18 @@ public function bindRequest($method)
7373
public function register()
7474
{
7575
$this->mergeConfigFrom(
76-
__DIR__ . '/../../config/googlerecaptchav2.php', 'googlerecaptchav2'
76+
__DIR__.'/../../config/googlerecaptchav2.php', 'googlerecaptchav2'
7777
);
7878

7979
$laravel = app();
8080
$version = $laravel::VERSION;
8181

8282
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)) {
8584
$this->bindConfig();
8685
}
8786
// default strategy
88-
if (!$this->app->has(RequestClientInterface::class)) {
87+
if (! $this->app->has(RequestClientInterface::class)) {
8988
switch ($this->app->get(ReCaptchaConfigV2Interface::class)->getRequestMethod()) {
9089
case 'guzzle':
9190
$this->app->bind(
@@ -128,12 +127,12 @@ protected function bootForConsole()
128127
{
129128
// Publishing the configuration file.
130129
$this->publishes([
131-
__DIR__ . '/../../config/googlerecaptchav2.php' => config_path('googlerecaptchav2.php'),
130+
__DIR__.'/../../config/googlerecaptchav2.php' => config_path('googlerecaptchav2.php'),
132131
], 'googlerecaptchav2.config');
133132

134133
// Publishing the views.
135134
$this->publishes([
136-
__DIR__ . '/../../resources/views' => base_path('resources/views'),
135+
__DIR__.'/../../resources/views' => base_path('resources/views'),
137136
], 'googlerecaptchav2.views');
138137
}
139138

0 commit comments

Comments
 (0)