From 66207959e2afafe9201478d17475705a7da8506e Mon Sep 17 00:00:00 2001 From: Laurent LE CORRE Date: Wed, 13 May 2020 17:44:39 +0200 Subject: [PATCH] =?UTF-8?q?On=20r=C3=A9installe=20ReCaptcha,=20sans=20le?= =?UTF-8?q?=20"rearrange"=20de=20code=20de=20PhpStorm.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- local/modules/ReCaptcha/Action/ReCaptchaAction.php | 14 +++++++------- local/modules/ReCaptcha/Config/module.xml | 4 ++-- local/modules/ReCaptcha/Config/routing.xml | 4 ++-- local/modules/ReCaptcha/Config/schema.xml | 4 ++-- .../Controller/ConfigurationController.php | 14 +++++++------- local/modules/ReCaptcha/Form/ConfigurationForm.php | 10 +++++----- .../default/recaptcha/configuration.html | 4 ++-- .../frontOffice/default/recaptcha-js.html | 2 +- 8 files changed, 28 insertions(+), 28 deletions(-) diff --git a/local/modules/ReCaptcha/Action/ReCaptchaAction.php b/local/modules/ReCaptcha/Action/ReCaptchaAction.php index 5f56a9a4..4f8373cf 100644 --- a/local/modules/ReCaptcha/Action/ReCaptchaAction.php +++ b/local/modules/ReCaptcha/Action/ReCaptchaAction.php @@ -18,13 +18,6 @@ class ReCaptchaAction implements EventSubscriberInterface $this->request = $request; } - public static function getSubscribedEvents() - { - return [ - ReCaptchaEvents::CHECK_CAPTCHA_EVENT => ['checkCaptcha', 128], - ]; - } - public function checkCaptcha(ReCaptchaCheckEvent $event) { $requestUrl = "https://www.google.com/recaptcha/api/siteverify"; @@ -52,4 +45,11 @@ class ReCaptchaAction implements EventSubscriberInterface $event->setHuman(true); } } + + public static function getSubscribedEvents() + { + return [ + ReCaptchaEvents::CHECK_CAPTCHA_EVENT => ['checkCaptcha', 128], + ]; + } } diff --git a/local/modules/ReCaptcha/Config/module.xml b/local/modules/ReCaptcha/Config/module.xml index 29dc4be7..b056ed6c 100644 --- a/local/modules/ReCaptcha/Config/module.xml +++ b/local/modules/ReCaptcha/Config/module.xml @@ -1,6 +1,6 @@ - ReCaptcha\ReCaptcha diff --git a/local/modules/ReCaptcha/Config/routing.xml b/local/modules/ReCaptcha/Config/routing.xml index 27717162..adcae397 100644 --- a/local/modules/ReCaptcha/Config/routing.xml +++ b/local/modules/ReCaptcha/Config/routing.xml @@ -1,7 +1,7 @@ - diff --git a/local/modules/ReCaptcha/Config/schema.xml b/local/modules/ReCaptcha/Config/schema.xml index 54c0ad06..e42d1ef7 100644 --- a/local/modules/ReCaptcha/Config/schema.xml +++ b/local/modules/ReCaptcha/Config/schema.xml @@ -1,6 +1,6 @@ -