mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
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:
parent
ce6a24dd0c
commit
36ef6d856f
|
@ -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"/>
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue