build: Updating mediawiki/mediawiki-codesniffer to 24.0.0

The following sniffs are failing and were disabled:
* MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgParser
* MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgTitle

The following sniffs was renamed:
* MediaWiki.VariableAnalysis.ForbiddenGlobalVariables.ForbiddenGlobal$wgTitle

Change-Id: Iabe2a787bae7fe299bed548c0097613ff5493a0d
This commit is contained in:
libraryupgrader 2019-02-06 09:03:37 +00:00 committed by Umherirrender
parent ce6a24dd0c
commit 36ef6d856f
3 changed files with 5 additions and 4 deletions

View file

@ -1,7 +1,8 @@
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.VariableAnalysis.ForbiddenGlobalVariables.ForbiddenGlobal$wgTitle" />
<exclude name="MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgParser" />
<exclude name="MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgTitle" />
</rule>
<file>.</file>
<arg name="extensions" value="php,php5,inc"/>

View file

@ -2,7 +2,7 @@
"require-dev": {
"jakub-onderka/php-parallel-lint": "1.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/mediawiki-codesniffer": "23.0.0",
"mediawiki/mediawiki-codesniffer": "24.0.0",
"mediawiki/minus-x": "0.3.1"
},
"scripts": {

View file

@ -37,7 +37,7 @@ class SpecialCollabPad extends SpecialPage {
*/
public function userCanExecute( User $user ) {
global $wgVisualEditorRebaserURL;
return !!$wgVisualEditorRebaserURL && parent::userCanExecute( $user );
return (bool)$wgVisualEditorRebaserURL && parent::userCanExecute( $user );
}
/**
@ -45,7 +45,7 @@ class SpecialCollabPad extends SpecialPage {
*/
public function isListed() {
global $wgVisualEditorRebaserURL;
return !!$wgVisualEditorRebaserURL;
return (bool)$wgVisualEditorRebaserURL;
}
/**