apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

@@ -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,

View File

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