build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0

Change-Id: I5b46168e1e845747ae0a92b28a7f9e56e06309aa
This commit is contained in:
Umherirrender 2024-03-10 17:18:48 +01:00
parent 6588e7c57e
commit af6ecdecf7
2 changed files with 9 additions and 4 deletions

View file

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

View file

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