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 |
||
|---|---|---|
| .. | ||
| converters | ||
| Hook | ||
| ConverterRule.php | ||
| ILanguageConverter.php | ||
| LanguageCode.php | ||
| LanguageConverter.php | ||
| LanguageConverterFactory.php | ||
| LanguageConverterIcu.php | ||
| LanguageConverterSpecific.php | ||
| LanguageFactory.php | ||
| LanguageFallback.php | ||
| LanguageNameUtils.php | ||
| Message.php | ||
| MessageLocalizer.php | ||
| TrivialLanguageConverter.php | ||