mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Some code cleanup [skip ci]
This commit is contained in:
@@ -34,6 +34,7 @@ class ReportHelper implements ReportHelperInterface
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param ReportQueryInterface $query
|
||||
*
|
||||
*/
|
||||
@@ -64,11 +65,13 @@ class ReportHelper implements ReportHelperInterface
|
||||
$diff = 0;
|
||||
|
||||
// remove cash account, if any:
|
||||
$accounts =$accounts->filter(function(Account $account) {
|
||||
if($account->accountType->type != 'Cash account') {
|
||||
return $account;
|
||||
$accounts = $accounts->filter(
|
||||
function (Account $account) {
|
||||
if ($account->accountType->type != 'Cash account') {
|
||||
return $account;
|
||||
}
|
||||
}
|
||||
});
|
||||
);
|
||||
|
||||
// summarize:
|
||||
foreach ($accounts as $account) {
|
||||
|
Reference in New Issue
Block a user