jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/371266 )

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


build: Updating mediawiki/mediawiki-codesniffer to 0.11.0

Change-Id: I721c8daae364e6fbaccbcf506be01e2676aca0e0
---
M api/ApiContentTranslationConfiguration.php
M api/ApiContentTranslationSuggestionList.php
M api/ApiQueryTranslatorStats.php
M composer.json
M includes/EchoNotificationPresentationModel.php
M includes/Translation.php
M includes/TranslationStorageManager.php
M includes/Translator.php
8 files changed, 10 insertions(+), 10 deletions(-)

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



diff --git a/api/ApiContentTranslationConfiguration.php 
b/api/ApiContentTranslationConfiguration.php
index 6148fd6..1403acb 100644
--- a/api/ApiContentTranslationConfiguration.php
+++ b/api/ApiContentTranslationConfiguration.php
@@ -22,7 +22,7 @@
                        $this->dieWithError( 'apierror-cx-invalidlanguage', 
'invalidlanguage' );
                }
 
-               $configFilename =  __DIR__ . 
'/../modules/source/conf/common.json';
+               $configFilename = __DIR__ . 
'/../modules/source/conf/common.json';
                $configuration = self::readConfigurationFile( $configFilename );
 
                // Some language pairs have specific configuration
diff --git a/api/ApiContentTranslationSuggestionList.php 
b/api/ApiContentTranslationSuggestionList.php
index d6ee28e..f5732e1 100644
--- a/api/ApiContentTranslationSuggestionList.php
+++ b/api/ApiContentTranslationSuggestionList.php
@@ -71,7 +71,7 @@
 
                if ( $listName === 'cx-suggestionlist-discarded' ) {
                        $type = SuggestionList::TYPE_DISCARDED;
-               } elseif ( $listName=== 'cx-suggestionlist-favorite' ) {
+               } elseif ( $listName === 'cx-suggestionlist-favorite' ) {
                        $type = SuggestionList::TYPE_FAVORITE;
                }
 
diff --git a/api/ApiQueryTranslatorStats.php b/api/ApiQueryTranslatorStats.php
index 4cb843a..246da33 100644
--- a/api/ApiQueryTranslatorStats.php
+++ b/api/ApiQueryTranslatorStats.php
@@ -27,7 +27,7 @@
                        $user = \User::newFromName( $params['translator'] );
                }
                $translator = new Translator( $user );
-               $translatorId =  $translator->getGlobalUserId();
+               $translatorId = $translator->getGlobalUserId();
                if ( !$translatorId ) {
                        if ( is_callable( [ $this, 'dieWithError' ] ) ) {
                                $this->dieWithError( 
'apierror-cx-invalidtranslator', 'invalidtranslator' );
diff --git a/composer.json b/composer.json
index e7375a8..cc89af9 100644
--- a/composer.json
+++ b/composer.json
@@ -22,7 +22,7 @@
        },
        "require-dev": {
                "jakub-onderka/php-parallel-lint": "0.9.2",
-               "mediawiki/mediawiki-codesniffer": "0.10.1",
+               "mediawiki/mediawiki-codesniffer": "0.11.0",
                "jakub-onderka/php-console-highlighter": "0.3.2"
        },
        "scripts": {
diff --git a/includes/EchoNotificationPresentationModel.php 
b/includes/EchoNotificationPresentationModel.php
index 7f073f6..44f3e90 100644
--- a/includes/EchoNotificationPresentationModel.php
+++ b/includes/EchoNotificationPresentationModel.php
@@ -16,7 +16,7 @@
 
        public function getPrimaryLink() {
                if ( $this->type === 'cx-first-translation' ) {
-                       $user =  $this->getViewingUserForGender();
+                       $user = $this->getViewingUserForGender();
                        $title = SpecialPage::getTitleFor( 'Contributions', 
$user );
                        return [
                                'url' => $title->getCanonicalURL(),
diff --git a/includes/Translation.php b/includes/Translation.php
index ff26288..5027eaf 100644
--- a/includes/Translation.php
+++ b/includes/Translation.php
@@ -157,7 +157,7 @@
                }
 
                if ( !is_array( $titles ) ) {
-                       return isset( $result[0] ) ? $result[0]: null;
+                       return isset( $result[0] ) ? $result[0] : null;
                }
 
                return $result;
diff --git a/includes/TranslationStorageManager.php 
b/includes/TranslationStorageManager.php
index fdcd1a0..fad6c64 100644
--- a/includes/TranslationStorageManager.php
+++ b/includes/TranslationStorageManager.php
@@ -25,9 +25,9 @@
                        'cxc_content' => $translationUnit->getContent()
                ];
                $conditions = [
-                       'cxc_translation_id' =>  
$translationUnit->getTranslationId(),
-                       'cxc_section_id' =>  $translationUnit->getSectionId(),
-                       'cxc_origin' =>  $translationUnit->getOrigin(),
+                       'cxc_translation_id' => 
$translationUnit->getTranslationId(),
+                       'cxc_section_id' => $translationUnit->getSectionId(),
+                       'cxc_origin' => $translationUnit->getOrigin(),
                        // Sometimes we get "duplicates" entries which differ 
in timestamp.
                        // Then any updates to those sections would fail 
(duplicate key for
                        // a unique index), if we did not limit this call to 
only one of them.
diff --git a/includes/Translator.php b/includes/Translator.php
index 4fbb836..8cdb217 100644
--- a/includes/Translator.php
+++ b/includes/Translator.php
@@ -188,7 +188,7 @@
        public static function getStats() {
                return [
                        'from' => self::getTranslatorsCount( 'source' ),
-                       'to' =>  self::getTranslatorsCount( 'target' ),
+                       'to' => self::getTranslatorsCount( 'target' ),
                        'total' => self::getTotalTranslatorsCount(),
                ];
        }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I721c8daae364e6fbaccbcf506be01e2676aca0e0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Legoktm <lego...@member.fsf.org>
Gerrit-Reviewer: Legoktm <lego...@member.fsf.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to