build: Updating mediawiki/mediawiki-codesniffer to 13.0.0

Change-Id: I7562a27108030044bdac1cf880ed22e4558f0c83
This commit is contained in:
libraryupgrader 2017-09-24 05:33:27 +00:00
parent 58e875d16d
commit 819e31d416
4 changed files with 4 additions and 4 deletions

View file

@ -372,7 +372,7 @@ abstract class BaseBlacklist {
// Load all the relevant tables from the correct DB.
// This assumes that old_text is the actual text or
// that the external store system is at least unified.
$row = wfGetDB( DB_SLAVE, [], $wiki )->selectRow(
$row = wfGetDB( DB_REPLICA, [], $wiki )->selectRow(
[ 'page', 'revision', 'text' ],
array_merge(
Revision::selectFields(),

View file

@ -275,7 +275,7 @@ class SpamBlacklist extends BaseBlacklist {
$cache->makeKey( 'external-link-list', $title->getLatestRevID() ),
$cache::TTL_MINUTE,
function ( $oldValue, &$ttl, array &$setOpts ) use ( $title ) {
$dbr = wfGetDB( DB_SLAVE );
$dbr = wfGetDB( DB_REPLICA );
$setOpts += Database::getCacheSetOptions( $dbr );
return $dbr->selectFieldValues(

View file

@ -2,7 +2,7 @@
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/mediawiki-codesniffer": "0.12.0"
"mediawiki/mediawiki-codesniffer": "13.0.0"
},
"scripts": {
"fix": "phpcbf",

View file

@ -91,7 +91,7 @@ if ( !$regexes ) {
exit( 1 );
}
$dbr = wfGetDB( DB_SLAVE );
$dbr = wfGetDB( DB_REPLICA );
$maxID = $dbr->selectField( 'page', 'MAX(page_id)' );
$reportingInterval = 100;