apply rector rules: symfony **UP TO** 44

This commit is contained in:
2023-07-28 01:52:53 +02:00
parent b6a094aeee
commit c20f65eebb
88 changed files with 211 additions and 320 deletions

View File

@@ -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";
}
}

View File

@@ -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 = [];