mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-23 22:54:02 +00:00
build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: I4307bfb8b32e8bbca9565b255758f8e68941fc6c
This commit is contained in:
parent
39662eaba7
commit
30b71be93c
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -654,7 +654,7 @@ class InputBox {
|
|||
if ( strpos( $line, '=' ) === false ) {
|
||||
continue;
|
||||
}
|
||||
list( $name, $value ) = explode( '=', $line, 2 );
|
||||
[ $name, $value ] = explode( '=', $line, 2 );
|
||||
$name = strtolower( trim( $name ) );
|
||||
$value = Sanitizer::decodeCharReferences( trim( $value ) );
|
||||
if ( $name === 'preloadparams[]' ) {
|
||||
|
|
Loading…
Reference in a new issue