build: Updating mediawiki/mediawiki-codesniffer to 24.0.0

Change-Id: Ifd3dde125bae36b1076576ddc0c8b09eadd18a72
This commit is contained in:
libraryupgrader 2019-02-06 13:01:32 +00:00
parent 7ed027ddcf
commit 5bd2eaf70e
4 changed files with 9 additions and 9 deletions

View file

@ -1,7 +1,7 @@
{
"require-dev": {
"jakub-onderka/php-parallel-lint": "1.0.0",
"mediawiki/mediawiki-codesniffer": "23.0.0",
"mediawiki/mediawiki-codesniffer": "24.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/minus-x": "0.3.1"
},

View file

@ -5,9 +5,9 @@ use MediaWiki\MediaWikiServices;
abstract class EchoDiscussionParser {
const HEADER_REGEX = '^(==+)\h*([^=].*)\h*\1$';
static protected $timestampRegex;
static protected $revisionInterpretationCache = [];
static protected $diffParser;
protected static $timestampRegex;
protected static $revisionInterpretationCache = [];
protected static $diffParser;
/**
* Given a Revision object, generates EchoEvent objects for

View file

@ -13,28 +13,28 @@ class EchoNotificationController {
*
* @var int $maxRecipientCacheSize
*/
static protected $maxRecipientCacheSize = 200;
protected static $maxRecipientCacheSize = 200;
/**
* Echo event agent per user blacklist
*
* @var MapCacheLRU
*/
static protected $blacklistByUser;
protected static $blacklistByUser;
/**
* Echo event agent per wiki blacklist
*
* @var EchoContainmentList|null
*/
static protected $wikiBlacklist;
protected static $wikiBlacklist;
/**
* Echo event agent per user whitelist, this overwrites $blacklistByUser
*
* @var MapCacheLRU
*/
static protected $whitelistByUser;
protected static $whitelistByUser;
/**
* Returns the count passed in, or MWEchoNotifUser::MAX_BADGE_COUNT + 1,

View file

@ -150,7 +150,7 @@ class EchoEvent extends EchoAbstractEntity implements Bundleable {
$obj->setTitle( $obj->title );
}
if ( $obj->agent && ! $obj->agent instanceof User ) {
if ( $obj->agent && !$obj->agent instanceof User ) {
throw new InvalidArgumentException( "Invalid user parameter" );
}