Libraryupgrader has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/380116 )

Change subject: build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
......................................................................

build: Updating mediawiki/mediawiki-codesniffer to 13.0.0

Change-Id: I155f72352224f230e94950f149fba400f26cbe6c
---
M FancyCaptcha/FancyCaptcha.class.php
M SimpleCaptcha/Captcha.php
M composer.json
M includes/ConfirmEditHooks.php
M tests/phpunit/CaptchaAuthenticationRequestTest.php
5 files changed, 3 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmEdit 
refs/changes/16/380116/1

diff --git a/FancyCaptcha/FancyCaptcha.class.php 
b/FancyCaptcha/FancyCaptcha.class.php
index 8224ce7..a875254 100644
--- a/FancyCaptcha/FancyCaptcha.class.php
+++ b/FancyCaptcha/FancyCaptcha.class.php
@@ -396,7 +396,7 @@
 
        /**
         * Delete a solved captcha image, if $wgCaptchaDeleteOnSolve is true.
-        * @inheritdoc
+        * @inheritDoc
         */
        protected function passCaptcha( $index, $word ) {
                global $wgCaptchaDeleteOnSolve;
diff --git a/SimpleCaptcha/Captcha.php b/SimpleCaptcha/Captcha.php
index 84a1854..66f508c 100644
--- a/SimpleCaptcha/Captcha.php
+++ b/SimpleCaptcha/Captcha.php
@@ -1,7 +1,6 @@
 <?php
 
 use MediaWiki\Auth\AuthenticationRequest;
-use MediaWiki\Logger\LoggerFactory;
 
 /**
  * Demo CAPTCHA (not for production usage) and base class for real CAPTCHAs
@@ -733,7 +732,7 @@
         * @return array
         */
        function getLinksFromTracker( $title ) {
-               $dbr = wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_REPLICA );
                $id = $title->getArticleID(); // should be zero queries
                $res = $dbr->select( 'externallinks', [ 'el_to' ],
                        [ 'el_from' => $id ], __METHOD__ );
diff --git a/composer.json b/composer.json
index daa26e1..1c8beff 100644
--- a/composer.json
+++ b/composer.json
@@ -1,7 +1,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/ConfirmEditHooks.php b/includes/ConfirmEditHooks.php
index 2769f45..42f52fe 100644
--- a/includes/ConfirmEditHooks.php
+++ b/includes/ConfirmEditHooks.php
@@ -1,6 +1,5 @@
 <?php
 
-use MediaWiki\Auth\AuthManager;
 
 class ConfirmEditHooks {
        protected static $instanceCreated = false;
diff --git a/tests/phpunit/CaptchaAuthenticationRequestTest.php 
b/tests/phpunit/CaptchaAuthenticationRequestTest.php
index 3513e5b..31f8ab0 100644
--- a/tests/phpunit/CaptchaAuthenticationRequestTest.php
+++ b/tests/phpunit/CaptchaAuthenticationRequestTest.php
@@ -1,7 +1,6 @@
 <?php
 
 use MediaWiki\Auth\AuthenticationRequestTestCase;
-use MediaWiki\Auth\AuthManager;
 
 class CaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
        public function setUp() {

-- 
To view, visit https://gerrit.wikimedia.org/r/380116
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I155f72352224f230e94950f149fba400f26cbe6c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ConfirmEdit
Gerrit-Branch: master
Gerrit-Owner: Libraryupgrader <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to