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"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ruleset>
|
<ruleset>
|
||||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
|
||||||
<exclude name="PSR2.Classes.PropertyDeclaration.ScopeMissing"/><!-- T166381 -->
|
|
||||||
<exclude name="Squiz.WhiteSpace.ScopeKeywordSpacing.Incorrect"/><!-- T166381 -->
|
|
||||||
</rule>
|
|
||||||
<rule ref="MediaWiki.NamingConventions.ValidGlobalName">
|
<rule ref="MediaWiki.NamingConventions.ValidGlobalName">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="ignoreList" type="array" value="$messageMemc" />
|
<property name="ignoreList" type="array" value="$messageMemc" />
|
||||||
|
|
|
@ -10,19 +10,27 @@ class SpamBlacklistTest extends MediaWikiTestCase {
|
||||||
protected $spamFilter;
|
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://meta.wikimedia.org/wiki/Spam_blacklist
|
||||||
* @see http://en.wikipedia.org/wiki/MediaWiki: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
|
* @see http://en.wikipedia.org/wiki/MediaWiki:Spam-whitelist
|
||||||
*
|
*
|
||||||
* via Flow extension
|
* via Flow extension
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected
|
protected $whitelist = [ 'a5b\.sytes\.net' ];
|
||||||
$blacklist = [ '\b01bags\.com\b', 'sytes\.net' ],
|
|
||||||
$whitelist = [ 'a5b\.sytes\.net' ];
|
|
||||||
|
|
||||||
public function spamProvider() {
|
public function spamProvider() {
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Reference in a new issue