diff --git a/MathCaptcha/includes/MathCaptcha.php b/MathCaptcha/includes/MathCaptcha.php index a4947a65c..f7175e74c 100644 --- a/MathCaptcha/includes/MathCaptcha.php +++ b/MathCaptcha/includes/MathCaptcha.php @@ -109,7 +109,7 @@ class MathCaptcha extends SimpleCaptcha { $req = AuthenticationRequest::getRequestByClass( $requests, CaptchaAuthenticationRequest::class, - true + true ); if ( !$req ) { return; diff --git a/QuestyCaptcha/includes/QuestyCaptcha.php b/QuestyCaptcha/includes/QuestyCaptcha.php index fda1edb89..d5b9be587 100644 --- a/QuestyCaptcha/includes/QuestyCaptcha.php +++ b/QuestyCaptcha/includes/QuestyCaptcha.php @@ -87,13 +87,14 @@ class QuestyCaptcha extends SimpleCaptcha { 'required', 'autocomplete' => 'off', // tab in before the edit textarea - 'tabindex' => $tabIndex ] ) . - "

\n" . + 'tabindex' => $tabIndex ] + ) . "

\n" . Xml::element( 'input', [ 'type' => 'hidden', 'name' => 'wpCaptchaId', 'id' => 'wpCaptchaId', - 'value' => $index ] ) + 'value' => $index ] + ) ]; } diff --git a/ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptcha.php b/ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptcha.php index 6629682c9..4967c4e95 100644 --- a/ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptcha.php +++ b/ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptcha.php @@ -85,10 +85,10 @@ HTML; // API is hardwired to return captchaWord, so use that if the standard isempty // "captchaWord" is sent as "captchaword" by visual editor $index = 'not used'; - $response = $request->getVal( 'g-recaptcha-response', - $request->getVal( 'captchaWord', - $request->getVal( 'captchaword' ) - ) ); + $response = $request->getVal( + 'g-recaptcha-response', + $request->getVal( 'captchaWord', $request->getVal( 'captchaword' ) ) + ); return [ $index, $response ]; }