mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-15 03:13:58 +00:00
Split multi variable declaration
Each variable should have a documentation block Change-Id: I53af14d18d3a11ee38256afe7e9d001a2641e466
This commit is contained in:
parent
ffaf8e7243
commit
83cd96ed55
|
@ -1,9 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="PSR2.Classes.PropertyDeclaration.ScopeMissing"/><!-- T166381 -->
|
||||
<exclude name="Squiz.WhiteSpace.ScopeKeywordSpacing.Incorrect"/><!-- T166381 -->
|
||||
</rule>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
|
||||
<rule ref="MediaWiki.NamingConventions.ValidGlobalName">
|
||||
<properties>
|
||||
<property name="ignoreList" type="array" value="$messageMemc" />
|
||||
|
|
|
@ -10,19 +10,27 @@ class SpamBlacklistTest extends MediaWikiTestCase {
|
|||
protected $spamFilter;
|
||||
|
||||
/**
|
||||
* Spam blacklist & whitelist regexes. Examples taken from:
|
||||
* Spam blacklist regexes. Examples taken from:
|
||||
*
|
||||
* @see http://meta.wikimedia.org/wiki/Spam_blacklist
|
||||
* @see http://en.wikipedia.org/wiki/MediaWiki:Spam-blacklist
|
||||
*
|
||||
* via Flow extension
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $blacklist = [ '\b01bags\.com\b', 'sytes\.net' ];
|
||||
|
||||
/**
|
||||
* Spam whitelist regexes. Examples taken from:
|
||||
*
|
||||
* @see http://en.wikipedia.org/wiki/MediaWiki:Spam-whitelist
|
||||
*
|
||||
* via Flow extension
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected
|
||||
$blacklist = [ '\b01bags\.com\b', 'sytes\.net' ],
|
||||
$whitelist = [ 'a5b\.sytes\.net' ];
|
||||
protected $whitelist = [ 'a5b\.sytes\.net' ];
|
||||
|
||||
public function spamProvider() {
|
||||
return [
|
||||
|
|
Loading…
Reference in a new issue