Fix some indenting and whitespace

Change-Id: Ib2c21563f823c6d31a71a94562f808cd2fca3782
This commit is contained in:
Reedy 2020-04-11 02:27:12 +01:00
parent f390c92b98
commit 74eb713da9
3 changed files with 9 additions and 8 deletions

View file

@ -109,7 +109,7 @@ class MathCaptcha extends SimpleCaptcha {
$req = AuthenticationRequest::getRequestByClass(
$requests,
CaptchaAuthenticationRequest::class,
true
true
);
if ( !$req ) {
return;

View file

@ -87,13 +87,14 @@ class QuestyCaptcha extends SimpleCaptcha {
'required',
'autocomplete' => 'off',
// tab in before the edit textarea
'tabindex' => $tabIndex ] ) .
"</p>\n" .
'tabindex' => $tabIndex ]
) . "</p>\n" .
Xml::element( 'input', [
'type' => 'hidden',
'name' => 'wpCaptchaId',
'id' => 'wpCaptchaId',
'value' => $index ] )
'value' => $index ]
)
];
}

View file

@ -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 ];
}