Split multi variable declaration

Each variable should have a documentation block

Change-Id: I53af14d18d3a11ee38256afe7e9d001a2641e466
This commit is contained in:
Umherirrender 2017-06-29 19:39:54 +02:00 committed by Bartosz Dziewoński
parent ffaf8e7243
commit 83cd96ed55
2 changed files with 13 additions and 8 deletions

View file

@ -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" />

View file

@ -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 [