build: Updating mediawiki/mediawiki-codesniffer to 29.0.0

Additional changes:
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: I96581fb165d9c60c205f83a4d9d479e7e7a0da64
This commit is contained in:
libraryupgrader 2020-01-14 11:15:54 +00:00
parent a13d8b709e
commit c9240eacd1
2 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@
"require-dev": {
"jakub-onderka/php-console-highlighter": "0.3.2",
"jakub-onderka/php-parallel-lint": "1.0.0",
"mediawiki/mediawiki-codesniffer": "28.0.0",
"mediawiki/mediawiki-codesniffer": "29.0.0",
"mediawiki/mediawiki-phan-config": "0.9.0",
"mediawiki/minus-x": "0.3.2"
},
@ -13,8 +13,8 @@
"minus-x check ."
],
"fix": [
"phpcbf",
"minus-x fix ."
"minus-x fix .",
"phpcbf"
]
},
"extra": {

View file

@ -72,9 +72,9 @@ class RevisionSliderHooks {
$stats->increment( 'RevisionSlider.event.hookinit' );
$timeOffset = $config->get( 'LocalTZoffset' );
if ( is_null( $config->get( 'Localtimezone' ) ) ) {
if ( $config->get( 'Localtimezone' ) === null ) {
$timeOffset = 0;
} elseif ( is_null( $timeOffset ) ) {
} elseif ( $timeOffset === null ) {
$timeOffset = 0;
}