mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-09-23 10:21:52 +00:00
Fix PSR12.Properties.ConstantVisibility.NotFound
Bug: T253169 Change-Id: I9bd5f82ed62bb01b80b13507832935ac7a673804
This commit is contained in:
parent
e757e415a9
commit
c647f7c80e
|
@ -4,7 +4,6 @@
|
|||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
||||
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
|
||||
</rule>
|
||||
<file>.</file>
|
||||
<arg name="extensions" value="php,php5,inc" />
|
||||
|
|
|
@ -27,9 +27,9 @@ use InvalidArgumentException;
|
|||
*/
|
||||
class CategoryManager {
|
||||
|
||||
const HIGH = 'high';
|
||||
const MEDIUM = 'medium';
|
||||
const LOW = 'low';
|
||||
private const HIGH = 'high';
|
||||
private const MEDIUM = 'medium';
|
||||
private const LOW = 'low';
|
||||
|
||||
/**
|
||||
* Map of category names to their hardcoded
|
||||
|
|
|
@ -32,7 +32,7 @@ class Database {
|
|||
* Maximum number of errors to save per category,
|
||||
* for a page, the rest are just dropped
|
||||
*/
|
||||
const MAX_PER_CAT = 20;
|
||||
public const MAX_PER_CAT = 20;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
|
|
Loading…
Reference in a new issue