mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-11 16:49:09 +00:00
build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: Iddcde8e23176b699f886ff7901bfaa354f6e3a69
This commit is contained in:
parent
863966a81b
commit
dfdbb1d686
|
@ -4,7 +4,7 @@
|
|||
"description": "Allows users to do a global string find-and-replace on all the pages of a wiki",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"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",
|
||||
|
@ -22,5 +22,10 @@
|
|||
],
|
||||
"phan": "phan -d . --long-progress-bar",
|
||||
"phpcs": "phpcs -sp --cache"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -155,7 +155,7 @@ class ReplaceAll extends Maintenance {
|
|||
}
|
||||
|
||||
$this->defaultContinue = true;
|
||||
// phpcs:ignore MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures
|
||||
// phpcs:ignore Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition
|
||||
while ( ( $line = fgets( $handle ) ) !== false ) {
|
||||
$field = explode( "\t", substr( $line, 0, -1 ) );
|
||||
if ( !isset( $field[1] ) ) {
|
||||
|
|
Loading…
Reference in a new issue