mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 02:53:50 +00:00
Apply rector rules: symfony up to 54
This commit is contained in:
@@ -23,6 +23,8 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
final class ChillPersonMoveCommand extends Command
|
||||
{
|
||||
protected static $defaultDescription = 'Move all the associated entities on a "from" person to a "to" person and remove the old person';
|
||||
|
||||
public function __construct(
|
||||
private readonly PersonMove $mover,
|
||||
private readonly EntityManagerInterface $em,
|
||||
@@ -53,7 +55,6 @@ final class ChillPersonMoveCommand extends Command
|
||||
{
|
||||
$this
|
||||
->setName('chill:person:move')
|
||||
->setDescription('Move all the associated entities on a "from" person to a "to" person and remove the old person')
|
||||
->addOption('from', 'f', InputOption::VALUE_REQUIRED, 'The person id to delete, all associated data will be moved before')
|
||||
->addOption('to', 't', InputOption::VALUE_REQUIRED, 'The person id which will received data')
|
||||
->addOption('dump-sql', null, InputOption::VALUE_NONE, 'dump sql to stdout')
|
||||
@@ -99,7 +100,7 @@ final class ChillPersonMoveCommand extends Command
|
||||
$this->chillLogger->notice('Move a person from command line succeeded', $ctxt);
|
||||
}
|
||||
|
||||
return 0;
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
|
||||
protected function interact(InputInterface $input, OutputInterface $output)
|
||||
|
@@ -41,7 +41,6 @@ final class ImportSocialWorkMetadata extends Command
|
||||
->setName('chill:person:import-socialwork')
|
||||
->addOption('filepath', 'f', InputOption::VALUE_REQUIRED, 'The file to import.')
|
||||
->addOption('language', 'l', InputOption::VALUE_OPTIONAL, 'The default language')
|
||||
->setDescription($description)
|
||||
->setHelp($help);
|
||||
}
|
||||
|
||||
|
@@ -20,6 +20,8 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class RemoveOldDraftAccompanyingPeriodCommand extends Command
|
||||
{
|
||||
protected static $defaultDescription = 'Remove draft accompanying period which are still draft and unused';
|
||||
|
||||
public function __construct(private readonly LoggerInterface $logger, private readonly OldDraftAccompanyingPeriodRemoverInterface $remover)
|
||||
{
|
||||
parent::__construct('chill:person:remove-old-draft-period');
|
||||
@@ -28,7 +30,6 @@ class RemoveOldDraftAccompanyingPeriodCommand extends Command
|
||||
protected function configure(): void
|
||||
{
|
||||
$this
|
||||
->setDescription('Remove draft accompanying period which are still draft and unused')
|
||||
->addArgument('interval', InputArgument::OPTIONAL, 'The interval for unactive periods', 'P15D');
|
||||
}
|
||||
|
||||
@@ -50,6 +51,6 @@ class RemoveOldDraftAccompanyingPeriodCommand extends Command
|
||||
|
||||
$this->logger->info('['.$this->getName().'] end of command');
|
||||
|
||||
return 0;
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user