build: Updating mediawiki/mediawiki-codesniffer to 13.0.0

Change-Id: I40598f8c34691bbe7b217aa38f24f150a210e2f3
This commit is contained in:
libraryupgrader 2017-09-24 05:26:03 +00:00
parent cf0587c026
commit 969027392e
3 changed files with 4 additions and 4 deletions

View file

@ -67,7 +67,7 @@ class SpecialGadgetUsage extends QueryPage {
* @return array * @return array
*/ */
public function getQueryInfo() { public function getQueryInfo() {
$dbr = wfGetDB( DB_SLAVE ); $dbr = wfGetDB( DB_REPLICA );
if ( !$this->activeUsers ) { if ( !$this->activeUsers ) {
return [ return [
'tables' => [ 'user_properties' ], 'tables' => [ 'user_properties' ],

View file

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

View file

@ -35,7 +35,7 @@ class GadgetDefinitionNamespaceRepo extends GadgetRepo {
$key, $key,
self::CACHE_TTL, self::CACHE_TTL,
function ( $oldValue, &$ttl, array &$setOpts ) { function ( $oldValue, &$ttl, array &$setOpts ) {
$dbr = wfGetDB( DB_SLAVE ); $dbr = wfGetDB( DB_REPLICA );
$setOpts += Database::getCacheSetOptions( $dbr ); $setOpts += Database::getCacheSetOptions( $dbr );
return $dbr->selectFieldValues( return $dbr->selectFieldValues(
@ -71,7 +71,7 @@ class GadgetDefinitionNamespaceRepo extends GadgetRepo {
$key, $key,
self::CACHE_TTL, self::CACHE_TTL,
function ( $old, &$ttl, array &$setOpts ) use ( $id ) { function ( $old, &$ttl, array &$setOpts ) use ( $id ) {
$setOpts += Database::getCacheSetOptions( wfGetDB( DB_SLAVE ) ); $setOpts += Database::getCacheSetOptions( wfGetDB( DB_REPLICA ) );
$title = Title::makeTitleSafe( NS_GADGET_DEFINITION, $id ); $title = Title::makeTitleSafe( NS_GADGET_DEFINITION, $id );
if ( !$title ) { if ( !$title ) {
$ttl = WANObjectCache::TTL_UNCACHEABLE; $ttl = WANObjectCache::TTL_UNCACHEABLE;