mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 14:48:11 +00:00
Code cleanup.
This commit is contained in:
@@ -232,6 +232,8 @@ class Report implements ReportInterface
|
||||
*
|
||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
||||
*
|
||||
* TODO: This method runs two queries which are only marginally different. Try and combine these.
|
||||
*
|
||||
* @param Carbon $date
|
||||
* @param bool $shared
|
||||
*
|
||||
@@ -245,7 +247,6 @@ class Report implements ReportInterface
|
||||
$end->endOfMonth();
|
||||
$userId = $this->_accounts->getUser()->id;
|
||||
|
||||
|
||||
$list = \TransactionJournal::leftJoin('transactions', 'transaction_journals.id', '=', 'transactions.transaction_journal_id')
|
||||
->leftJoin('accounts', 'transactions.account_id', '=', 'accounts.id')
|
||||
->leftJoin(
|
||||
|
||||
Reference in New Issue
Block a user