From 74eb713da9f6e6d3c0f0019e23f3e282843f51b4 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 11 Apr 2020 02:27:12 +0100 Subject: [PATCH] Fix some indenting and whitespace Change-Id: Ib2c21563f823c6d31a71a94562f808cd2fca3782 --- MathCaptcha/includes/MathCaptcha.php | 2 +- QuestyCaptcha/includes/QuestyCaptcha.php | 7 ++++--- ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptcha.php | 8 ++++---- 3 files changed, 9 insertions(+), 8 deletions(-) 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 ]; }