Fix PSR12.Properties.ConstantVisibility.NotFound

Bug: T253169
Change-Id: Ie8eaf5eb9a687fa575d6237b01ae502b3ae2ede3
This commit is contained in:
Reedy 2020-09-19 18:14:53 +01:00 committed by Jforrester
parent b3762eab91
commit 4ad2800088
2 changed files with 2 additions and 3 deletions

View file

@ -2,7 +2,6 @@
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgTitle" />
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
</rule>
<file>.</file>
<arg name="extensions" value="php,php5,inc"/>

View file

@ -16,8 +16,8 @@ class ApiVisualEditorEdit extends ApiBase {
use ApiParsoidTrait;
const MAX_CACHE_RECENT = 2;
const MAX_CACHE_TTL = 900;
private const MAX_CACHE_RECENT = 2;
private const MAX_CACHE_TTL = 900;
/**
* @inheritDoc