mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
Define visibility on class constant
Change-Id: I140d4cbf7bf1397138fef1f1396057fc19c1cbb2
This commit is contained in:
parent
740f335d69
commit
e801fb1e3b
|
@ -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" />
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue