Libraryupgrader has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/380162 )
Change subject: build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
......................................................................
build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I84fa326fa47ca097b94774e8f869bdd045248834
---
M composer.json
M includes/GoogleLogin.hooks.php
M includes/GoogleUser.php
M includes/alloweddomains/ArrayAllowedDomainsStore.php
M includes/auth/GoogleAuthenticationRequest.php
M includes/auth/GoogleRemoveAuthenticationRequest.php
M includes/specials/SpecialGoogleLogin.php
M includes/specials/SpecialManageGoogleLogin.php
8 files changed, 3 insertions(+), 14 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GoogleLogin
refs/changes/62/380162/1
diff --git a/composer.json b/composer.json
index 0641603..bdc0193 100644
--- a/composer.json
+++ b/composer.json
@@ -7,7 +7,7 @@
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
- "mediawiki/mediawiki-codesniffer": "0.12.0",
+ "mediawiki/mediawiki-codesniffer": "13.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2"
},
"scripts": {
diff --git a/includes/GoogleLogin.hooks.php b/includes/GoogleLogin.hooks.php
index 8e06aba..1e34238 100644
--- a/includes/GoogleLogin.hooks.php
+++ b/includes/GoogleLogin.hooks.php
@@ -3,11 +3,6 @@
namespace GoogleLogin;
use ConfigFactory;
-use Linker;
-use SpecialPage;
-use ChangeTags;
-
-use GoogleLogin\Specials\SpecialGoogleLogin;
class GoogleLoginHooks {
public static function onUserLogoutComplete() {
diff --git a/includes/GoogleUser.php b/includes/GoogleUser.php
index 73083bf..0f616c2 100644
--- a/includes/GoogleUser.php
+++ b/includes/GoogleUser.php
@@ -134,7 +134,7 @@
public static function getGoogleIdFromUser( User $user, $flags =
User::READ_LATEST ) {
$db = ( $flags & User::READ_LATEST )
? wfGetDB( DB_MASTER )
- : wfGetDB( DB_SLAVE );
+ : wfGetDB( DB_REPLICA );
$s = $db->select(
'user_google_user',
@@ -169,7 +169,7 @@
public static function getUserFromGoogleId( $googleId, $flags =
User::READ_LATEST ) {
$db = ( $flags & User::READ_LATEST )
? wfGetDB( DB_MASTER )
- : wfGetDB( DB_SLAVE );
+ : wfGetDB( DB_REPLICA );
$s = $db->selectRow(
'user_google_user',
diff --git a/includes/alloweddomains/ArrayAllowedDomainsStore.php
b/includes/alloweddomains/ArrayAllowedDomainsStore.php
index 1b62f25..0137843 100644
--- a/includes/alloweddomains/ArrayAllowedDomainsStore.php
+++ b/includes/alloweddomains/ArrayAllowedDomainsStore.php
@@ -2,8 +2,6 @@
namespace GoogleLogin\AllowedDomains;
-use Config;
-
/**
* Class GlobalAllowedDomainsStore
*
diff --git a/includes/auth/GoogleAuthenticationRequest.php
b/includes/auth/GoogleAuthenticationRequest.php
index b830863..32e4684 100644
--- a/includes/auth/GoogleAuthenticationRequest.php
+++ b/includes/auth/GoogleAuthenticationRequest.php
@@ -5,7 +5,6 @@
namespace GoogleLogin\Auth;
-use GoogleLogin\GoogleUser;
use MediaWiki\Auth\AuthManager;
use MediaWiki\Auth\ButtonAuthenticationRequest;
diff --git a/includes/auth/GoogleRemoveAuthenticationRequest.php
b/includes/auth/GoogleRemoveAuthenticationRequest.php
index 6e0d2e1..12bf6e8 100644
--- a/includes/auth/GoogleRemoveAuthenticationRequest.php
+++ b/includes/auth/GoogleRemoveAuthenticationRequest.php
@@ -7,7 +7,6 @@
use GoogleLogin\GoogleUser;
use MediaWiki\Auth\AuthenticationRequest;
-use MediaWiki\Auth\AuthManager;
/**
* Implementation of an AuthenticationReuqest that is used to remove a
diff --git a/includes/specials/SpecialGoogleLogin.php
b/includes/specials/SpecialGoogleLogin.php
index fb8879c..68d1c72 100644
--- a/includes/specials/SpecialGoogleLogin.php
+++ b/includes/specials/SpecialGoogleLogin.php
@@ -12,7 +12,6 @@
use Google_Client;
use Google_Service_Plus;
-use SpecialPage;
/**
* Implements a special page that gives information about a specific Google
user, after
diff --git a/includes/specials/SpecialManageGoogleLogin.php
b/includes/specials/SpecialManageGoogleLogin.php
index efa7b1c..b8d6954 100644
--- a/includes/specials/SpecialManageGoogleLogin.php
+++ b/includes/specials/SpecialManageGoogleLogin.php
@@ -10,7 +10,6 @@
use Html;
use HTMLForm;
use User;
-use ConfigFactory;
use Http;
use ErrorPageError;
--
To view, visit https://gerrit.wikimedia.org/r/380162
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I84fa326fa47ca097b94774e8f869bdd045248834
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GoogleLogin
Gerrit-Branch: master
Gerrit-Owner: Libraryupgrader <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits