mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 12:24:50 +00:00
cleanup: Commands are a lot less verbal and report better on success / failue
This commit is contained in:
@@ -62,7 +62,7 @@ class MigrateAttachments extends Command
|
||||
{
|
||||
$start = microtime(true);
|
||||
if ($this->isExecuted() && true !== $this->option('force')) {
|
||||
$this->warn('This command has already been executed.');
|
||||
$this->warn('Correct: this command has already been executed.');
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -94,7 +94,7 @@ class MigrateAttachments extends Command
|
||||
}
|
||||
}
|
||||
if (0 === $count) {
|
||||
$this->line('All attachments are OK.');
|
||||
$this->info('Correct: all attachments are OK.');
|
||||
}
|
||||
if (0 !== $count) {
|
||||
$this->line(sprintf('Updated %d attachment(s).', $count));
|
||||
|
||||
Reference in New Issue
Block a user