Some code cleanup [skip ci]

This commit is contained in:
James Cole
2015-05-23 08:51:24 +02:00
parent f05002c729
commit 3c3b723913
8 changed files with 30 additions and 34 deletions

View File

@@ -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) {