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

Change subject: Use short array syntax in alias file
......................................................................


Use short array syntax in alias file

Change-Id: Id799bba015f626d9addd7be1d11945ce99282a1b
---
M ContentTranslation.alias.php
M phpcs.xml
2 files changed, 113 insertions(+), 111 deletions(-)

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



diff --git a/ContentTranslation.alias.php b/ContentTranslation.alias.php
index 04a6841..7f5e6e8 100644
--- a/ContentTranslation.alias.php
+++ b/ContentTranslation.alias.php
@@ -7,171 +7,170 @@
  * @copyright 2014 ContentTranslation Team and others; see AUTHORS.txt
  * @license GPL-2.0+; see LICENSE.txt
  */
-// @codingStandardsIgnoreFile
 
-$specialPageAliases = array();
+$specialPageAliases = [];
 
 /** English (English) */
-$specialPageAliases['en'] = array(
-       'ContentTranslation' => array( 'ContentTranslation', 'CX' ),
-       'ContentTranslationStats' => array( 'ContentTranslationStats', 
'CXStats' ),
-);
+$specialPageAliases['en'] = [
+       'ContentTranslation' => [ 'ContentTranslation', 'CX' ],
+       'ContentTranslationStats' => [ 'ContentTranslationStats', 'CXStats' ],
+];
 
 /** Arabic (العربية) */
-$specialPageAliases['ar'] = array(
-       'ContentTranslation' => array( 'ترجمة_المحتوى' ),
-       'ContentTranslationStats' => array( 'إحصاءات_ترجمة_المحتوى' ),
-);
+$specialPageAliases['ar'] = [
+       'ContentTranslation' => [ 'ترجمة_المحتوى' ],
+       'ContentTranslationStats' => [ 'إحصاءات_ترجمة_المحتوى' ],
+];
 
 /** Egyptian Arabic (مصرى) */
-$specialPageAliases['arz'] = array(
-       'ContentTranslation' => array( 'ترجمه_المحتوى' ),
-       'ContentTranslationStats' => array( 'احصاءات_ترجمه_المحتوى' ),
-);
+$specialPageAliases['arz'] = [
+       'ContentTranslation' => [ 'ترجمه_المحتوى' ],
+       'ContentTranslationStats' => [ 'احصاءات_ترجمه_المحتوى' ],
+];
 
 /** Western Balochi (بلوچی رخشانی) */
-$specialPageAliases['bgn'] = array(
-       'ContentTranslation' => array( 'مهتوایی_ترجمه' ),
-       'ContentTranslationStats' => array( 'ContentTranslationStats' ),
-);
+$specialPageAliases['bgn'] = [
+       'ContentTranslation' => [ 'مهتوایی_ترجمه' ],
+       'ContentTranslationStats' => [ 'ContentTranslationStats' ],
+];
 
 /** Bengali (বাংলা) */
-$specialPageAliases['bn'] = array(
-       'ContentTranslation' => array( 'বিষয়বস্তু_অনুবাদ' ),
-       'ContentTranslationStats' => array( 'বিষয়বস্তু_অনুবাদের_পরিসংখ্যান' ),
-);
+$specialPageAliases['bn'] = [
+       'ContentTranslation' => [ 'বিষয়বস্তু_অনুবাদ' ],
+       'ContentTranslationStats' => [ 'বিষয়বস্তু_অনুবাদের_পরিসংখ্যান' ],
+];
 
 /** German (Deutsch) */
-$specialPageAliases['de'] = array(
-       'ContentTranslation' => array( 'Inhaltsübersetzung' ),
-       'ContentTranslationStats' => array( 
'Statistiken_zu_Inhaltsübersetzungen' ),
-);
+$specialPageAliases['de'] = [
+       'ContentTranslation' => [ 'Inhaltsübersetzung' ],
+       'ContentTranslationStats' => [ 'Statistiken_zu_Inhaltsübersetzungen' ],
+];
 
 /** Zazaki (Zazaki) */
-$specialPageAliases['diq'] = array(
-       'ContentTranslation' => array( 'AçarnayışêZerreki', 'AZ' ),
-);
+$specialPageAliases['diq'] = [
+       'ContentTranslation' => [ 'AçarnayışêZerreki', 'AZ' ],
+];
 
 /** Spanish (Español) */
-$specialPageAliases['es'] = array(
-       'ContentTranslation' => array( 'Traducción_de_contenidos' ),
-       'ContentTranslationStats' => array( 
'Estadísticas_de_traducción_de_contenidos' ),
-);
+$specialPageAliases['es'] = [
+       'ContentTranslation' => [ 'Traducción_de_contenidos' ],
+       'ContentTranslationStats' => [ 
'Estadísticas_de_traducción_de_contenidos' ],
+];
 
 /** Persian (فارسی) */
-$specialPageAliases['fa'] = array(
-       'ContentTranslation' => array( 'ترجمهٔ_محتوا', 'ترجمه_محتوا' ),
-       'ContentTranslationStats' => array( 'آمار_ترجمهٔ_محتوا', 
'آمار_ترجمه_محتوا' ),
-);
+$specialPageAliases['fa'] = [
+       'ContentTranslation' => [ 'ترجمهٔ_محتوا', 'ترجمه_محتوا' ],
+       'ContentTranslationStats' => [ 'آمار_ترجمهٔ_محتوا', 'آمار_ترجمه_محتوا' 
],
+];
 
 /** Hebrew (עברית) */
-$specialPageAliases['he'] = array(
-       'ContentTranslation' => array( 'תרגום_תוכן' ),
-       'ContentTranslationStats' => array( 'סטטיסטיקות_תרגום_תוכן' ),
-);
+$specialPageAliases['he'] = [
+       'ContentTranslation' => [ 'תרגום_תוכן' ],
+       'ContentTranslationStats' => [ 'סטטיסטיקות_תרגום_תוכן' ],
+];
 
 /** Upper Sorbian (hornjoserbsce) */
-$specialPageAliases['hsb'] = array(
-       'ContentTranslation' => array( 'Wobsahowe_přełožowanje' ),
-);
+$specialPageAliases['hsb'] = [
+       'ContentTranslation' => [ 'Wobsahowe_přełožowanje' ],
+];
 
 /** Italian (italiano) */
-$specialPageAliases['it'] = array(
-       'ContentTranslation' => array( 'TraduzioneContenuti' ),
-       'ContentTranslationStats' => array( 'StatisticheTraduzioneContenuti' ),
-);
+$specialPageAliases['it'] = [
+       'ContentTranslation' => [ 'TraduzioneContenuti' ],
+       'ContentTranslationStats' => [ 'StatisticheTraduzioneContenuti' ],
+];
 
 /** Korean (한국어) */
-$specialPageAliases['ko'] = array(
-       'ContentTranslation' => array( '내용번역' ),
-       'ContentTranslationStats' => array( '내용번역통계' ),
-);
+$specialPageAliases['ko'] = [
+       'ContentTranslation' => [ '내용번역' ],
+       'ContentTranslationStats' => [ '내용번역통계' ],
+];
 
 /** Luxembourgish (Lëtzebuergesch) */
-$specialPageAliases['lb'] = array(
-       'ContentTranslation' => array( 'Iwwersetzung_vum_Inhalt' ),
-       'ContentTranslationStats' => array( 
'Statistiken_iwwer_d\'Iwwersetze_vun_Inhalter' ),
-);
+$specialPageAliases['lb'] = [
+       'ContentTranslation' => [ 'Iwwersetzung_vum_Inhalt' ],
+       'ContentTranslationStats' => [ 
'Statistiken_iwwer_d\'Iwwersetze_vun_Inhalter' ],
+];
 
 /** Northern Luri (لۊری شومالی) */
-$specialPageAliases['lrc'] = array(
-       'ContentTranslation' => array( 'والریاری_مینونە', 'سی_ایکس' ),
-       'ContentTranslationStats' => array( 'گوتە_یاری_ڤالئرشتئن_مینونە', 
'گوتە_کاری_سی_ئیکس' ),
-);
+$specialPageAliases['lrc'] = [
+       'ContentTranslation' => [ 'والریاری_مینونە', 'سی_ایکس' ],
+       'ContentTranslationStats' => [ 'گوتە_یاری_ڤالئرشتئن_مینونە', 
'گوتە_کاری_سی_ئیکس' ],
+];
 
 /** Malagasy (Malagasy) */
-$specialPageAliases['mg'] = array(
-       'ContentTranslation' => array( 'FandikanaVontoatiny' ),
-       'ContentTranslationStats' => array( 'StatistikaFandikanaVontoatiny' ),
-);
+$specialPageAliases['mg'] = [
+       'ContentTranslation' => [ 'FandikanaVontoatiny' ],
+       'ContentTranslationStats' => [ 'StatistikaFandikanaVontoatiny' ],
+];
 
 /** Macedonian (македонски) */
-$specialPageAliases['mk'] = array(
-       'ContentTranslation' => array( 'ПреводНаСодржини' ),
-       'ContentTranslationStats' => array( 'СтатистикаЗаПреводНаСодржини' ),
-);
+$specialPageAliases['mk'] = [
+       'ContentTranslation' => [ 'ПреводНаСодржини' ],
+       'ContentTranslationStats' => [ 'СтатистикаЗаПреводНаСодржини' ],
+];
 
 /** Malayalam (മലയാളം) */
-$specialPageAliases['ml'] = array(
-       'ContentTranslation' => array( 'ലേഖനപരിഭാഷ' ),
-);
+$specialPageAliases['ml'] = [
+       'ContentTranslation' => [ 'ലേഖനപരിഭാഷ' ],
+];
 
 /** Malay (Bahasa Melayu) */
-$specialPageAliases['ms'] = array(
-       'ContentTranslation' => array( 'Penterjemahan_kandungan' ),
-       'ContentTranslationStats' => array( 'Statistik_penterjemahan_kandungan' 
),
-);
+$specialPageAliases['ms'] = [
+       'ContentTranslation' => [ 'Penterjemahan_kandungan' ],
+       'ContentTranslationStats' => [ 'Statistik_penterjemahan_kandungan' ],
+];
 
 /** Norwegian Bokmål (norsk bokmål) */
-$specialPageAliases['nb'] = array(
-       'ContentTranslation' => array( 'Innholdsoversettelse' ),
-       'ContentTranslationStats' => array( 'Innholdsoversettelsesstatistikk' ),
-);
+$specialPageAliases['nb'] = [
+       'ContentTranslation' => [ 'Innholdsoversettelse' ],
+       'ContentTranslationStats' => [ 'Innholdsoversettelsesstatistikk' ],
+];
 
 /** Dutch (Nederlands) */
-$specialPageAliases['nl'] = array(
-       'ContentTranslation' => array( 'Paginavertalen' ),
-       'ContentTranslationStats' => array( 'Paginavertalingsstatistieken' ),
-);
+$specialPageAliases['nl'] = [
+       'ContentTranslation' => [ 'Paginavertalen' ],
+       'ContentTranslationStats' => [ 'Paginavertalingsstatistieken' ],
+];
 
 /** Norwegian Nynorsk (norsk nynorsk) */
-$specialPageAliases['nn'] = array(
-       'ContentTranslation' => array( 'Innhaldsomsetjing' ),
-       'ContentTranslationStats' => array( 'Innhaldsomsetjingsstatistikk' ),
-);
+$specialPageAliases['nn'] = [
+       'ContentTranslation' => [ 'Innhaldsomsetjing' ],
+       'ContentTranslationStats' => [ 'Innhaldsomsetjingsstatistikk' ],
+];
 
 /** Swedish (svenska) */
-$specialPageAliases['sv'] = array(
-       'ContentTranslation' => array( 'Innehållsöversättning' ),
-       'ContentTranslationStats' => array( 'Innehållsöversättningsstatistik' ),
-);
+$specialPageAliases['sv'] = [
+       'ContentTranslation' => [ 'Innehållsöversättning' ],
+       'ContentTranslationStats' => [ 'Innehållsöversättningsstatistik' ],
+];
 
 /** Ukrainian (українська) */
-$specialPageAliases['uk'] = array(
-       'ContentTranslation' => array( 'Переклад_вмісту' ),
-       'ContentTranslationStats' => array( 'Статистика_Перекладу_вмісту' ),
-);
+$specialPageAliases['uk'] = [
+       'ContentTranslation' => [ 'Переклад_вмісту' ],
+       'ContentTranslationStats' => [ 'Статистика_Перекладу_вмісту' ],
+];
 
 /** Urdu (اردو) */
-$specialPageAliases['ur'] = array(
-       'ContentTranslation' => array( 'ترجمہ_مواد', 'تم' ),
-       'ContentTranslationStats' => array( 'شماریات_ترجمہ_مواد', 'شماریات_تم' 
),
-);
+$specialPageAliases['ur'] = [
+       'ContentTranslation' => [ 'ترجمہ_مواد', 'تم' ],
+       'ContentTranslationStats' => [ 'شماریات_ترجمہ_مواد', 'شماریات_تم' ],
+];
 
 /** Vietnamese (Tiếng Việt) */
-$specialPageAliases['vi'] = array(
-       'ContentTranslation' => array( 'Dịch_nội_dung' ),
-       'ContentTranslationStats' => array( 'Thống_kê_dịch_nội_dung' ),
-);
+$specialPageAliases['vi'] = [
+       'ContentTranslation' => [ 'Dịch_nội_dung' ],
+       'ContentTranslationStats' => [ 'Thống_kê_dịch_nội_dung' ],
+];
 
 /** Simplified Chinese (中文(简体)‎) */
-$specialPageAliases['zh-hans'] = array(
-       'ContentTranslation' => array( '内容翻译' ),
-       'ContentTranslationStats' => array( '内容翻译统计' ),
-);
+$specialPageAliases['zh-hans'] = [
+       'ContentTranslation' => [ '内容翻译' ],
+       'ContentTranslationStats' => [ '内容翻译统计' ],
+];
 
 /** Traditional Chinese (中文(繁體)‎) */
-$specialPageAliases['zh-hant'] = array(
-       'ContentTranslation' => array( '內容翻譯' ),
-       'ContentTranslationStats' => array( '內容翻譯統計' ),
-);
+$specialPageAliases['zh-hant'] = [
+       'ContentTranslation' => [ '內容翻譯' ],
+       'ContentTranslationStats' => [ '內容翻譯統計' ],
+];
diff --git a/phpcs.xml b/phpcs.xml
index d81a292..42674f6 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -1,6 +1,9 @@
 <?xml version="1.0"?>
 <ruleset>
        <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
+       <rule ref="Generic.Files.LineLength">
+               <exclude-pattern>ContentTranslation.alias.php</exclude-pattern>
+       </rule>
        <file>.</file>
        <arg name="extensions" value="php,php5,inc"/>
        <arg name="encoding" value="utf8"/>

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id799bba015f626d9addd7be1d11945ce99282a1b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <umherirrender_de...@web.de>
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