fix: replace console messages with unified command.

This commit is contained in:
James Cole
2023-06-20 07:16:56 +02:00
parent f2b2c2109f
commit 42043de34f
62 changed files with 767 additions and 512 deletions

View File

@@ -23,6 +23,7 @@ declare(strict_types=1);
namespace FireflyIII\Console\Commands\Integrity;
use FireflyIII\Console\Commands\ShowsFriendlyMessages;
use FireflyIII\Models\Account;
use FireflyIII\Models\Budget;
use FireflyIII\Models\Category;
@@ -35,6 +36,8 @@ use stdClass;
*/
class ReportEmptyObjects extends Command
{
use ShowsFriendlyMessages;
/**
* The console command description.
*
@@ -81,7 +84,7 @@ class ReportEmptyObjects extends Command
foreach ($set as $entry) {
$line = 'User #%d (%s) has account #%d ("%s") which has no transactions.';
$line = sprintf($line, $entry->user_id, $entry->email, $entry->id, $entry->name);
$this->line($line);
$this->friendlyWarning($line);
}
}
@@ -105,7 +108,7 @@ class ReportEmptyObjects extends Command
$entry->id,
$entry->name
);
$this->line($line);
$this->friendlyWarning($line);
}
}
@@ -130,7 +133,7 @@ class ReportEmptyObjects extends Command
$entry->id,
$entry->name
);
$this->line($line);
$this->friendlyWarning($line);
}
}
@@ -155,7 +158,7 @@ class ReportEmptyObjects extends Command
$entry->id,
$entry->name
);
$this->line($line);
$this->friendlyWarning($line);
}
}
@@ -180,7 +183,7 @@ class ReportEmptyObjects extends Command
$entry->id,
$entry->tag
);
$this->line($line);
$this->friendlyWarning($line);
}
}
}