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

@ -87,13 +87,14 @@ class QuestyCaptcha extends SimpleCaptcha {
'required', 'required',
'autocomplete' => 'off', 'autocomplete' => 'off',
// tab in before the edit textarea // tab in before the edit textarea
'tabindex' => $tabIndex ] ) . 'tabindex' => $tabIndex ]
"</p>\n" . ) . "</p>\n" .
Xml::element( 'input', [ Xml::element( 'input', [
'type' => 'hidden', 'type' => 'hidden',
'name' => 'wpCaptchaId', 'name' => 'wpCaptchaId',
'id' => '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 // API is hardwired to return captchaWord, so use that if the standard isempty
// "captchaWord" is sent as "captchaword" by visual editor // "captchaWord" is sent as "captchaword" by visual editor
$index = 'not used'; $index = 'not used';
$response = $request->getVal( 'g-recaptcha-response', $response = $request->getVal(
$request->getVal( 'captchaWord', 'g-recaptcha-response',
$request->getVal( 'captchaword' ) $request->getVal( 'captchaWord', $request->getVal( 'captchaword' ) )
) ); );
return [ $index, $response ]; return [ $index, $response ];
} }