mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
apply rector rules: symfony **UP TO** 44
This commit is contained in:
@@ -88,7 +88,7 @@ class LoadAndUpdateLanguagesCommand extends Command
|
||||
$languages = [];
|
||||
|
||||
foreach ($chillAvailableLanguages as $avLang) {
|
||||
$languages[$avLang] = $languageBundle->getLanguageNames($avLang);
|
||||
$languages[$avLang] = \Symfony\Component\Intl\Languages::getNames();
|
||||
}
|
||||
|
||||
$languageCodes = array_keys($languages[$chillAvailableLanguages[0]]);
|
||||
@@ -125,7 +125,7 @@ class LoadAndUpdateLanguagesCommand extends Command
|
||||
if ($langageDB) {
|
||||
$em->remove($langageDB);
|
||||
}
|
||||
echo 'Code excluded : ' . $code . ' - ' . $languageBundle->getLanguageName($code) . "\n";
|
||||
echo 'Code excluded : ' . $code . ' - ' . \Symfony\Component\Intl\Languages::getName() . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -36,7 +36,7 @@ class LoadCountriesCommand extends Command
|
||||
$countries = [];
|
||||
|
||||
foreach ($languages as $language) {
|
||||
$countries[$language] = $regionBundle->getCountryNames($language);
|
||||
$countries[$language] = \Symfony\Component\Intl\Currencies::getNames();
|
||||
}
|
||||
|
||||
$countryEntities = [];
|
||||
|
Reference in New Issue
Block a user