wiki.techinc.nl/includes/language
Tim Starling 9c3c0b704b Use array_fill_keys() instead of array_flip() if that reflects the developer's intention
array_fill_keys() was introduced in PHP 5.2.0 and works like
array_flip() except that it does only one thing (copying keys) instead
of two things (copying keys and values). That makes it faster and more
obvious.

When array_flip() calls were paired, I left them as is, because that
pattern is too cute. I couldn't kill something so cute.

Sometimes it was hard to figure out whether the values in array_flip()
result were used. That's the point of this change. If you use
array_fill_keys(), the intention is obvious.

Change-Id: If8d340a8bc816a15afec37e64f00106ae45e10ed
2021-06-15 00:11:10 +00:00
..
converters Add converter for the Talysh language (tly) 2021-02-17 13:49:36 +00:00
Hook
ConverterRule.php Use array_fill_keys() instead of array_flip() if that reflects the developer's intention 2021-06-15 00:11:10 +00:00
ILanguageConverter.php Parser: remove Title from method signatures 2021-04-29 18:11:46 +02:00
LanguageCode.php
LanguageConverter.php Revert "Add type hint to constructor of LanguageConverter" 2021-06-09 18:59:48 +00:00
LanguageConverterFactory.php Add converter for the Talysh language (tly) 2021-02-17 13:49:36 +00:00
LanguageConverterIcu.php
LanguageConverterSpecific.php
LanguageFactory.php
LanguageFallback.php
LanguageNameUtils.php
Message.php Replace Title in Message/MessageCache 2021-06-09 06:16:56 -07:00
MessageLocalizer.php
TrivialLanguageConverter.php Parser: remove Title from method signatures 2021-04-29 18:11:46 +02:00