mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
apply rector rules
This commit is contained in:
@@ -64,17 +64,13 @@ class ChillUserSendRenewPasswordCodeCommand extends Command
|
||||
|
||||
/**
|
||||
* The current input interface.
|
||||
*
|
||||
* @var InputInterface
|
||||
*/
|
||||
private $input;
|
||||
private ?\Symfony\Component\Console\Input\InputInterface $input = null;
|
||||
|
||||
/**
|
||||
* The current output interface.
|
||||
*
|
||||
* @var OutputInterface
|
||||
*/
|
||||
private $output;
|
||||
private ?\Symfony\Component\Console\Output\OutputInterface $output = null;
|
||||
|
||||
public function __construct(
|
||||
LoggerInterface $logger,
|
||||
|
@@ -31,12 +31,12 @@ class LoadAndUpdateLanguagesCommand extends Command
|
||||
final public const INCLUDE_REGIONAL_VERSION = 'include_regional';
|
||||
|
||||
// Array of ancien languages (to exclude)
|
||||
private $ancientToExclude = ['ang', 'egy', 'fro', 'goh', 'grc', 'la', 'non', 'peo', 'pro', 'sga',
|
||||
private array $ancientToExclude = ['ang', 'egy', 'fro', 'goh', 'grc', 'la', 'non', 'peo', 'pro', 'sga',
|
||||
'dum', 'enm', 'frm', 'gmh', 'mga', 'akk', 'phn', 'zxx', 'got', 'und', ];
|
||||
|
||||
// The regional version of language are language with _ in the code
|
||||
// This array contains regional code to not exclude
|
||||
private $regionalVersionToInclude = ['ro_MD'];
|
||||
private array $regionalVersionToInclude = ['ro_MD'];
|
||||
|
||||
/**
|
||||
* LoadCountriesCommand constructor.
|
||||
@@ -84,7 +84,6 @@ class LoadAndUpdateLanguagesCommand extends Command
|
||||
{
|
||||
$em = $this->entityManager;
|
||||
$chillAvailableLanguages = $this->availableLanguages;
|
||||
$languageBundle = Intl::getLanguageBundle();
|
||||
$languages = [];
|
||||
|
||||
foreach ($chillAvailableLanguages as $avLang) {
|
||||
@@ -125,7 +124,7 @@ class LoadAndUpdateLanguagesCommand extends Command
|
||||
if ($langageDB) {
|
||||
$em->remove($langageDB);
|
||||
}
|
||||
echo 'Code excluded : ' . $code . ' - ' . \Symfony\Component\Intl\Languages::getName() . "\n";
|
||||
echo 'Code excluded : ' . $code . ' - ' . \Symfony\Component\Intl\Languages::getName('en_GB') . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user