Define visibility on class constant

Change-Id: I140d4cbf7bf1397138fef1f1396057fc19c1cbb2
This commit is contained in:
Umherirrender 2019-10-25 19:14:46 +02:00
parent 740f335d69
commit e801fb1e3b
4 changed files with 10 additions and 13 deletions

View file

@ -1,9 +1,6 @@
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Usage.NullableType.PHP71NullableStyle" />
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
</rule>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
<file>.</file>
<arg name="extensions" value="php,php5,inc" />
<arg name="encoding" value="UTF-8" />

View file

@ -6,7 +6,7 @@
"license-name": "GPL-2.0-or-later",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.33.0"
"MediaWiki": ">= 1.35.0"
},
"ConfigRegistry": {
"categorytree": "GlobalVarConfig::newInstance"

View file

@ -28,12 +28,12 @@
*/
class CategoryTreeHidePrefix {
const NEVER = 0;
public const NEVER = 0;
const ALWAYS = 10;
public const ALWAYS = 10;
const CATEGORIES = 20;
public const CATEGORIES = 20;
const AUTO = 30;
public const AUTO = 30;
}

View file

@ -27,12 +27,12 @@
*/
class CategoryTreeMode {
const CATEGORIES = 0;
public const CATEGORIES = 0;
const PAGES = 10;
public const PAGES = 10;
const ALL = 20;
public const ALL = 20;
const PARENTS = 100;
public const PARENTS = 100;
}