build: Updating mediawiki/mediawiki-codesniffer to 24.0.0

Change-Id: I4650b34b2c6d18cae2bf4650aaf423810fb96457
This commit is contained in:
libraryupgrader 2019-02-06 12:04:20 +00:00
parent 1fe01d8a4f
commit 87715809bb
4 changed files with 6 additions and 6 deletions

View file

@ -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,
] );

View file

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

View file

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

View file

@ -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"
},