mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-15 02:03:58 +00:00
Split multi variable declaration
Each variable should have a documentation block Change-Id: I1f9f892fc29c6fa3ef0197ebafa05c89fd07ca37
This commit is contained in:
parent
26024ac399
commit
cfb327ea6a
|
@ -15,7 +15,11 @@
|
||||||
* Implements a title blacklist for MediaWiki
|
* Implements a title blacklist for MediaWiki
|
||||||
*/
|
*/
|
||||||
class TitleBlacklist {
|
class TitleBlacklist {
|
||||||
private $mBlacklist = null, $mWhitelist = null;
|
/** @var array */
|
||||||
|
private $mBlacklist = null;
|
||||||
|
|
||||||
|
/** @var array */
|
||||||
|
private $mWhitelist = null;
|
||||||
|
|
||||||
/** @var TitleBlacklist */
|
/** @var TitleBlacklist */
|
||||||
protected static $instance = null;
|
protected static $instance = null;
|
||||||
|
@ -340,12 +344,35 @@ class TitleBlacklist {
|
||||||
* Represents a title blacklist entry
|
* Represents a title blacklist entry
|
||||||
*/
|
*/
|
||||||
class TitleBlacklistEntry {
|
class TitleBlacklistEntry {
|
||||||
private
|
/**
|
||||||
$mRaw, ///< Raw line
|
* Raw line
|
||||||
$mRegex, ///< Regular expression to match
|
* @var string
|
||||||
$mParams, ///< Parameters for this entry
|
*/
|
||||||
$mFormatVersion, ///< Entry format version
|
private $mRaw;
|
||||||
$mSource; ///< Source of this entry
|
|
||||||
|
/**
|
||||||
|
* Regular expression to match
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private $mRegex;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parameters for this entry
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
private $mParams;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Entry format version
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private $mFormatVersion;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Source of this entry
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private $mSource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a new TitleBlacklistEntry.
|
* Construct a new TitleBlacklistEntry.
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
<ruleset>
|
<ruleset>
|
||||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||||
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
|
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
|
||||||
<exclude name="PSR2.Classes.PropertyDeclaration.ScopeMissing"/><!-- T166381 -->
|
|
||||||
<exclude name="Squiz.WhiteSpace.ScopeKeywordSpacing.Incorrect"/><!-- T166381 -->
|
|
||||||
</rule>
|
</rule>
|
||||||
<rule ref="MediaWiki.NamingConventions.ValidGlobalName">
|
<rule ref="MediaWiki.NamingConventions.ValidGlobalName">
|
||||||
<properties>
|
<properties>
|
||||||
|
|
Loading…
Reference in a new issue