Skip to content

Commit

Permalink
Small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienHarper committed Sep 4, 2019
1 parent ac2f0e7 commit 998d511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DoctrineAuditBundle/Command/CleanAuditLogsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected function configure()
->setDescription('Cleans audit tables')
->setName(self::$defaultName)
->addOption('no-confirm', null, InputOption::VALUE_NONE, 'No interaction mode')
->addArgument('keep', InputArgument::OPTIONAL, 'Keep last N months of audit.', 12)
->addArgument('keep', InputArgument::OPTIONAL, 'Keep last N months of audit.', '12')
;
}

Expand Down Expand Up @@ -80,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$message = sprintf(
"You are about to clean audits older than %d months (up to <comment>%s</comment>): %d entities involved.\n Do you want to proceed?",
$input->getArgument('keep'),
$keep,
$until->format('Y-m-d'),
\count($entities)
);
Expand Down

0 comments on commit 998d511

Please sign in to comment.