jenkins-bot has submitted this change and it was merged.

Change subject: build: Enable phpcs rule 
'MediaWiki.VariableAnalysis.UnusedGlobalVariables' and make pass
......................................................................


build: Enable phpcs rule 'MediaWiki.VariableAnalysis.UnusedGlobalVariables' and 
make pass

Change-Id: I1af3e34531ff9d02183a7ad0052712d9f137609c
---
M includes/NotifUser.php
M maintenance/removeInvalidTargetPage.php
M phpcs.xml
3 files changed, 0 insertions(+), 4 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/NotifUser.php b/includes/NotifUser.php
index 0b88336..7fcb0c0 100644
--- a/includes/NotifUser.php
+++ b/includes/NotifUser.php
@@ -181,7 +181,6 @@
         * @return boolean User has received messages
         */
        public function hasMessages( $cached = true ) {
-               global $wgEchoConfig;
                $section = EchoAttributeManager::MESSAGE;
 
                $memcKey = $this->getHasMessagesKey();
diff --git a/maintenance/removeInvalidTargetPage.php 
b/maintenance/removeInvalidTargetPage.php
index 1555571..76335ad 100644
--- a/maintenance/removeInvalidTargetPage.php
+++ b/maintenance/removeInvalidTargetPage.php
@@ -23,8 +23,6 @@
        }
 
        public function execute() {
-               global $wgEchoCluster;
-
                $dbFactory = MWEchoDbFactory::newFromDefault();
                $dbw = $dbFactory->getEchoDb( DB_MASTER );
                $dbr = $dbFactory->getEchoDb( DB_SLAVE );
diff --git a/phpcs.xml b/phpcs.xml
index 06f29d6..a32c10e 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -3,7 +3,6 @@
        <file>.</file>
        <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
                <exclude name="Generic.Files.LineLength"/>
-               <exclude 
name="MediaWiki.VariableAnalysis.UnusedGlobalVariables"/>
        </rule>
        <arg name="encoding" value="utf8"/>
        <arg name="extensions" value="php,php5,inc"/>

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1af3e34531ff9d02183a7ad0052712d9f137609c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Mooeypoo <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to