mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 14:41:20 +00:00
Various code cleanup.
This commit is contained in:
@@ -52,7 +52,7 @@ class FixFrontpageAccounts extends Command
|
||||
$users = User::get();
|
||||
/** @var User $user */
|
||||
foreach ($users as $user) {
|
||||
$preference = Preferences::getForUser($user, 'frontPageAccounts');
|
||||
$preference = app('preferences')->getForUser($user, 'frontPageAccounts');
|
||||
if (null !== $preference) {
|
||||
$this->fixPreference($preference);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ class FixTransactionTypes extends Command
|
||||
}
|
||||
}
|
||||
if ($count > 0) {
|
||||
$this->friendlyInfo('Corrected transaction type of %d transaction journals.', $count);
|
||||
$this->friendlyInfo(sprintf('Corrected transaction type of %d transaction journals.', $count));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user