mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix some code quality things.
This commit is contained in:
@@ -494,10 +494,8 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
public function getOpeningBalanceGroup(Account $account): ?TransactionGroup
|
||||
{
|
||||
$journal = $this->getOpeningBalance($account);
|
||||
$group = null;
|
||||
$group = $journal?->transactionGroup;
|
||||
|
||||
return $group;
|
||||
return $journal?->transactionGroup;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -637,11 +635,9 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
*/
|
||||
public function oldestJournalDate(Account $account): ?Carbon
|
||||
{
|
||||
$result = null;
|
||||
$journal = $this->oldestJournal($account);
|
||||
$result = $journal?->date;
|
||||
|
||||
return $result;
|
||||
return $journal?->date;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user