Add void after some methods.

This commit is contained in:
James Cole
2023-12-21 04:59:23 +01:00
parent bc50d25468
commit 655d03bec4
14 changed files with 19 additions and 16 deletions

View File

@@ -51,7 +51,7 @@ class FixAccountTypes extends Command
/**
* Execute the console command.
*
* @throws FireflyException|\JsonException
* @throws FireflyException
*/
public function handle(): int
{
@@ -373,7 +373,7 @@ class FixAccountTypes extends Command
$this->inspectJournal($journal);
}
private function giveNewExpense(TransactionJournal $journal, Transaction $destination)
private function giveNewExpense(TransactionJournal $journal, Transaction $destination): void
{
app('log')->debug(sprintf('An account of type "%s" could be a valid destination.', AccountTypeEnum::EXPENSE->value));
$this->factory->setUser($journal->user);

View File

@@ -374,7 +374,7 @@ class ForceDecimalSize extends Command
/**
* This method fixes all piggy bank repetitions in currency $currency.
*/
private function correctPiggyRepetitionAmounts(TransactionCurrency $currency, array $fields)
private function correctPiggyRepetitionAmounts(TransactionCurrency $currency, array $fields): void
{
$operator = $this->operator;
$cast = $this->cast;

View File

@@ -91,7 +91,7 @@ class UpgradeCurrencyPreferences extends Command
}
}
private function upgradeGroupPreferences(UserGroup $group)
private function upgradeGroupPreferences(UserGroup $group): void
{
$currencies = TransactionCurrency::get();
$enabled = new Collection();