@@ -214,8 +214,8 @@ discard block |
||
| 214 | 214 | public function setApiUrls(): ReCaptchaBuilder |
| 215 | 215 | { |
| 216 | 216 | |
| 217 | - $this->api_url = 'https://' . $this->api_domain . '/recaptcha/api/siteverify'; |
|
| 218 | - $this->api_js_url = 'https://' . $this->api_domain . '/recaptcha/api.js'; |
|
| 217 | + $this->api_url = 'https://'.$this->api_domain.'/recaptcha/api/siteverify'; |
|
| 218 | + $this->api_js_url = 'https://'.$this->api_domain.'/recaptcha/api.js'; |
|
| 219 | 219 | |
| 220 | 220 | return $this; |
| 221 | 221 | } |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | $whitelist = explode(',', $whitelist); |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | - $whitelist = array_map(function ($item) { |
|
| 235 | + $whitelist = array_map(function($item) { |
|
| 236 | 236 | |
| 237 | 237 | return trim($item); |
| 238 | 238 | }, $whitelist); |
@@ -287,8 +287,8 @@ discard block |
||
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | // Create query string |
| 290 | - $query = ($query) ? '?' . http_build_query($query) : ""; |
|
| 291 | - $html .= "<script src=\"" . $this->api_js_url . $query . "\" async defer></script>"; |
|
| 290 | + $query = ($query) ? '?'.http_build_query($query) : ""; |
|
| 291 | + $html .= "<script src=\"".$this->api_js_url.$query."\" async defer></script>"; |
|
| 292 | 292 | |
| 293 | 293 | return $html; |
| 294 | 294 | } |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | 'response' => $response, |
| 323 | 323 | ]); |
| 324 | 324 | |
| 325 | - $url = $this->api_url . '?' . $params; |
|
| 325 | + $url = $this->api_url.'?'.$params; |
|
| 326 | 326 | |
| 327 | 327 | if (function_exists('curl_version')) { |
| 328 | 328 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | return ''; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - $html = "<script src=\"" . $this->api_js_url . "?render={$this->api_site_key}\"></script>"; |
|
| 50 | + $html = "<script src=\"".$this->api_js_url."?render={$this->api_site_key}\"></script>"; |
|
| 51 | 51 | |
| 52 | 52 | $action = Arr::get($configuration, 'action', 'homepage'); |
| 53 | 53 | |
@@ -69,10 +69,10 @@ discard block |
||
| 69 | 69 | fetch('/" . config( |
| 70 | 70 | 'recaptcha.default_validation_route', |
| 71 | 71 | 'biscolab-recaptcha/validate' |
| 72 | - ) . "?" . config( |
|
| 72 | + )."?".config( |
|
| 73 | 73 | 'recaptcha.default_token_parameter_name', |
| 74 | 74 | 'token' |
| 75 | - ) . "=' + token, { |
|
| 75 | + )."=' + token, { |
|
| 76 | 76 | headers: { |
| 77 | 77 | \"X-Requested-With\": \"XMLHttpRequest\", |
| 78 | 78 | \"X-CSRF-TOKEN\": csrfToken.content |