mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Remove dead code.
This commit is contained in:
@@ -127,6 +127,7 @@ class ReportController extends Controller
|
||||
$budget = $this->budgetRepository->findNull((int)$attributes['budgetId']);
|
||||
$account = $this->accountRepository->findNull((int)$attributes['accountId']);
|
||||
|
||||
|
||||
switch (true) {
|
||||
case BalanceLine::ROLE_DEFAULTROLE === $role && null !== $budget->id:
|
||||
// normal row with a budget:
|
||||
@@ -137,10 +138,6 @@ class ReportController extends Controller
|
||||
$journals = $this->popupHelper->balanceForNoBudget($account, $attributes);
|
||||
$budget->name = (string)trans('firefly.no_budget');
|
||||
break;
|
||||
case BalanceLine::ROLE_DIFFROLE === $role:
|
||||
$journals = $this->popupHelper->balanceDifference($account, $attributes);
|
||||
$budget->name = (string)trans('firefly.leftUnbalanced');
|
||||
break;
|
||||
case BalanceLine::ROLE_TAGROLE === $role:
|
||||
// row with tag info.
|
||||
throw new FireflyException('Firefly cannot handle this type of info-button (BalanceLine::TagRole)');
|
||||
|
||||
@@ -56,7 +56,7 @@ class BalanceController extends Controller
|
||||
|
||||
$balance = $helper->getBalanceReport($accounts, $start, $end);
|
||||
|
||||
$result = view('reports.partials.balance', compact('balance'))->render();
|
||||
$result = view('reports.partials.balance', compact( 'balance'))->render();
|
||||
$cache->store($result);
|
||||
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user