From 83cd96ed55290c4bfeb4b4b075f0a6d989567d58 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Thu, 29 Jun 2017 19:39:54 +0200 Subject: [PATCH] Split multi variable declaration Each variable should have a documentation block Change-Id: I53af14d18d3a11ee38256afe7e9d001a2641e466 --- phpcs.xml | 5 +---- tests/phpunit/SpamBlacklistTest.php | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/phpcs.xml b/phpcs.xml index 7f6f03d9..f8b7b8cd 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,9 +1,6 @@ - - - - + diff --git a/tests/phpunit/SpamBlacklistTest.php b/tests/phpunit/SpamBlacklistTest.php index f556bd96..5d2d790c 100644 --- a/tests/phpunit/SpamBlacklistTest.php +++ b/tests/phpunit/SpamBlacklistTest.php @@ -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 [