@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | $this->addValidationRule(); |
35 | 35 | $this->publishes([ |
36 | - __DIR__ . '/../config/recaptcha.php' => config_path('recaptcha.php'), |
|
36 | + __DIR__.'/../config/recaptcha.php' => config_path('recaptcha.php'), |
|
37 | 37 | ]); |
38 | 38 | } |
39 | 39 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function addValidationRule() { |
44 | 44 | |
45 | - Validator::extendImplicit('recaptcha', function ($attribute, $value, $parameters, $validator) { |
|
45 | + Validator::extendImplicit('recaptcha', function($attribute, $value, $parameters, $validator) { |
|
46 | 46 | |
47 | 47 | return app('recaptcha')->validate($value); |
48 | 48 | }, trans('validation.recaptcha')); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | public function register() { |
57 | 57 | |
58 | 58 | $this->mergeConfigFrom( |
59 | - __DIR__ . '/../config/recaptcha.php', 'recaptcha' |
|
59 | + __DIR__.'/../config/recaptcha.php', 'recaptcha' |
|
60 | 60 | ); |
61 | 61 | |
62 | 62 | $this->registerReCaptchaBuilder(); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | protected function registerReCaptchaBuilder() { |
71 | 71 | |
72 | - $this->app->singleton('recaptcha', function ($app) { |
|
72 | + $this->app->singleton('recaptcha', function($app) { |
|
73 | 73 | |
74 | 74 | if (config('recaptcha.version') == 'v2') { |
75 | 75 | return new ReCaptchaBuilderV2(config('recaptcha.api_site_key'), config('recaptcha.api_secret_key'), config('recaptcha.version')); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | } |
88 | 88 | $html .= '<script> |
89 | 89 | function biscolabLaravelReCaptcha(token) { |
90 | - document.getElementById("' . $formId . '").submit(); |
|
90 | + document.getElementById("' . $formId.'").submit(); |
|
91 | 91 | } |
92 | 92 | </script>'; |
93 | 93 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | 'response' => $response, |
115 | 115 | ]); |
116 | 116 | |
117 | - $url = $this->api_url . '?' . $params; |
|
117 | + $url = $this->api_url.'?'.$params; |
|
118 | 118 | |
119 | 119 | if (function_exists('curl_version')) { |
120 | 120 | $curl = curl_init($url); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function htmlFormSnippet() { |
25 | 25 | |
26 | - return ($this->version == 'v2') ? '<div class="g-recaptcha" data-sitekey="' . $this->api_site_key . '"></div>' : ''; |
|
26 | + return ($this->version == 'v2') ? '<div class="g-recaptcha" data-sitekey="'.$this->api_site_key.'"></div>' : ''; |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | } |
30 | 30 | \ No newline at end of file |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function htmlFormButton($buttonInnerHTML = 'Submit') { |
28 | 28 | |
29 | - return ($this->version == 'invisible') ? '<button class="g-recaptcha" data-sitekey="' . $this->api_site_key . '" data-callback="biscolabLaravelReCaptcha">' . $buttonInnerHTML . '</button>' : ''; |
|
29 | + return ($this->version == 'invisible') ? '<button class="g-recaptcha" data-sitekey="'.$this->api_site_key.'" data-callback="biscolabLaravelReCaptcha">'.$buttonInnerHTML.'</button>' : ''; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | } |
33 | 33 | \ No newline at end of file |