Clean up some code.

This commit is contained in:
James Cole
2016-03-29 16:13:36 +02:00
parent ab4616a3ad
commit 6fdfec3967
3 changed files with 2 additions and 7 deletions

View File

@@ -310,7 +310,7 @@ class BudgetController extends Controller
$cache->addProperty('budget');
$cache->addProperty('year');
if ($cache->has()) {
//return Response::json($cache->get()); // @codeCoverageIgnore
return Response::json($cache->get()); // @codeCoverageIgnore
}
$budgetInformation = $repository->getBudgetsAndExpensesPerMonth($accounts, $start, $end);
@@ -328,9 +328,6 @@ class BudgetController extends Controller
$row = [clone $start];
$dateFormatted = $start->format('Y-m');
//echo $start,' '.$month.'<br>';
// each budget, check if there is an entry for this month:
/** @var array $row */
foreach ($budgetInformation as $budgetRow) {