Skip to content

Commit 44368fd

Browse files
committed
Php cs-fixer
1 parent e821640 commit 44368fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

eicaptcha.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ public function hookDisplayCustomerAccountForm($params)
275275
* @param array $params
276276
*
277277
* @return bool|void
278+
*
278279
* @deprecated since 2.4.0
279280
*/
280281
public function hookActionContactFormSubmitCaptcha($params)
@@ -291,6 +292,7 @@ public function hookActionContactFormSubmitCaptcha($params)
291292
* @param array $params
292293
*
293294
* @return bool|void
295+
*
294296
* @since 2.4.0
295297
*/
296298
public function hookActionCustomerRegisterSubmitCaptcha($params)
@@ -394,12 +396,12 @@ protected function _validateCaptcha()
394396

395397
$context = Context::getContext();
396398
//Fix issue if allow_url_open is set to 0
397-
if ( function_exists('ini_get') && !ini_get('allow_url_fopen')){
399+
if (function_exists('ini_get') && !ini_get('allow_url_fopen')) {
398400
$recaptchaMethod = new \ReCaptcha\RequestMethod\CurlPost();
399401
} else {
400402
$recaptchaMethod = null;
401403
}
402-
$captcha = new ReCaptcha(Configuration::get('CAPTCHA_PRIVATE_KEY'),$recaptchaMethod);
404+
$captcha = new ReCaptcha(Configuration::get('CAPTCHA_PRIVATE_KEY'), $recaptchaMethod);
403405
$result = $captcha->verify(
404406
Tools::getValue('g-recaptcha-response'),
405407
Tools::getRemoteAddr()

0 commit comments

Comments
 (0)