mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 09:30:06 +00:00
build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: I5b46168e1e845747ae0a92b28a7f9e56e06309aa
This commit is contained in:
parent
6588e7c57e
commit
af6ecdecf7
|
@ -24,7 +24,7 @@ class MathCaptcha extends SimpleCaptcha {
|
|||
* @param array &$resultArr
|
||||
*/
|
||||
protected function addCaptchaAPI( &$resultArr ) {
|
||||
list( $sum, $answer ) = $this->pickSum();
|
||||
[ $sum, $answer ] = $this->pickSum();
|
||||
$html = $this->fetchMath( $sum );
|
||||
$index = $this->storeCaptcha( [ 'answer' => $answer ] );
|
||||
$resultArr['captcha'] = $this->describeCaptchaType();
|
||||
|
@ -47,7 +47,7 @@ class MathCaptcha extends SimpleCaptcha {
|
|||
* @return array
|
||||
*/
|
||||
public function getFormInformation( $tabIndex = 1 ) {
|
||||
list( $sum, $answer ) = $this->pickSum();
|
||||
[ $sum, $answer ] = $this->pickSum();
|
||||
$index = $this->storeCaptcha( [ 'answer' => $answer ] );
|
||||
|
||||
$form = '<table><tr><td>' . $this->fetchMath( $sum ) . '</td>';
|
||||
|
@ -89,7 +89,7 @@ class MathCaptcha extends SimpleCaptcha {
|
|||
* @return array
|
||||
*/
|
||||
public function getCaptcha() {
|
||||
list( $sum, $answer ) = $this->pickSum();
|
||||
[ $sum, $answer ] = $this->pickSum();
|
||||
return [ 'question' => $sum, 'answer' => $answer ];
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"mediawiki/mediawiki-codesniffer": "41.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "43.0.0",
|
||||
"mediawiki/mediawiki-phan-config": "0.14.0",
|
||||
"mediawiki/minus-x": "1.1.1",
|
||||
"php-parallel-lint/php-console-highlighter": "1.0.0",
|
||||
|
@ -18,5 +18,10 @@
|
|||
],
|
||||
"phan": "phan -d . --long-progress-bar",
|
||||
"phpcs": "phpcs -sp --cache"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue