mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +00:00
build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
Change-Id: I4650b34b2c6d18cae2bf4650aaf423810fb96457
This commit is contained in:
parent
1fe01d8a4f
commit
87715809bb
|
@ -41,7 +41,7 @@ class HTMLReCaptchaNoCaptchaField extends HTMLFormField {
|
|||
$output = Html::element( 'div', [
|
||||
'class' => [
|
||||
'g-recaptcha',
|
||||
'mw-confirmedit-captcha-fail' => !!$this->error,
|
||||
'mw-confirmedit-captcha-fail' => (bool)$this->error,
|
||||
],
|
||||
'data-sitekey' => $this->key,
|
||||
] );
|
||||
|
|
|
@ -20,7 +20,7 @@ class ReCaptchaNoCaptcha extends SimpleCaptcha {
|
|||
$output = Html::element( 'div', [
|
||||
'class' => [
|
||||
'g-recaptcha',
|
||||
'mw-confirmedit-captcha-fail' => !!$this->error,
|
||||
'mw-confirmedit-captcha-fail' => (bool)$this->error,
|
||||
],
|
||||
'data-sitekey' => $wgReCaptchaSiteKey
|
||||
] );
|
||||
|
|
|
@ -320,7 +320,7 @@ class SimpleCaptcha {
|
|||
* Check if a bad login has already been registered for this
|
||||
* IP address. If so, require a captcha.
|
||||
* @return bool
|
||||
* @access private
|
||||
* @private
|
||||
*/
|
||||
public function isBadLoginTriggered() {
|
||||
global $wgCaptchaBadLoginAttempts;
|
||||
|
@ -683,7 +683,7 @@ class SimpleCaptcha {
|
|||
* Build regex from whitelist
|
||||
* @param string $lines string from [[MediaWiki:Captcha-addurl-whitelist]]
|
||||
* @return array Regexes
|
||||
* @access private
|
||||
* @private
|
||||
*/
|
||||
private function buildRegexes( $lines ) {
|
||||
# Code duplicated from the SpamBlacklist extension (r19197)
|
||||
|
@ -1081,7 +1081,7 @@ class SimpleCaptcha {
|
|||
* @param string $section
|
||||
* @param int $flags Flags for Revision loading methods
|
||||
* @return string
|
||||
* @access private
|
||||
* @private
|
||||
*/
|
||||
private function loadText( $title, $section, $flags = Revision::READ_LATEST ) {
|
||||
global $wgParser;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"jakub-onderka/php-parallel-lint": "1.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "23.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "24.0.0",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/minus-x": "0.3.1"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue