From 6e9b4f0e9ce4ccd6089c18b205065ef7fa077484 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 17 Feb 2016 01:09:32 -0800 Subject: Convert all array() syntax to [] Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b --- languages/classes/LanguageTyv.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'languages/classes/LanguageTyv.php') diff --git a/languages/classes/LanguageTyv.php b/languages/classes/LanguageTyv.php index a2a8831b6442..437651c579ed 100644 --- a/languages/classes/LanguageTyv.php +++ b/languages/classes/LanguageTyv.php @@ -44,16 +44,16 @@ class LanguageTyv extends Language { } // Set up some constants... - $allVowels = array( "е", "и", "э", "ө", "ү", "а", "ё", "о", "у", "ы", "ю", "я" ); - $frontVowels = array( "е", "и", "э", "ө", "ү" ); - $backVowels = array( "а", "ё", "о", "у", "ы", "ю", "я" ); - $unroundFrontVowels = array( "е", "и", "э" ); - $roundFrontVowels = array( "ө", "ү" ); - $unroundBackVowels = array( "а", "ы", "я" ); - $roundBackVowels = array( "ё", "о", "у", "ю" ); - $unvoicedPhonemes = array( "т", "п", "с", "ш", "к", "ч", "х" ); - $directiveUnvoicedStems = array( "т", "п", "с", "ш", "к", "ч", "х", "л", "м", "н", "ң" ); - $directiveVoicedStems = array( "д", "б", "з", "ж", "г", "р", "й" ); + $allVowels = [ "е", "и", "э", "ө", "ү", "а", "ё", "о", "у", "ы", "ю", "я" ]; + $frontVowels = [ "е", "и", "э", "ө", "ү" ]; + $backVowels = [ "а", "ё", "о", "у", "ы", "ю", "я" ]; + $unroundFrontVowels = [ "е", "и", "э" ]; + $roundFrontVowels = [ "ө", "ү" ]; + $unroundBackVowels = [ "а", "ы", "я" ]; + $roundBackVowels = [ "ё", "о", "у", "ю" ]; + $unvoicedPhonemes = [ "т", "п", "с", "ш", "к", "ч", "х" ]; + $directiveUnvoicedStems = [ "т", "п", "с", "ш", "к", "ч", "х", "л", "м", "н", "ң" ]; + $directiveVoicedStems = [ "д", "б", "з", "ж", "г", "р", "й" ]; // Put the word in a form we can play with since we're using UTF-8 preg_match_all( '/./us', $word, $ar ); -- cgit v1.2.3