Renamed the other method.

This commit is contained in:
James Cole
2017-01-05 09:10:04 +01:00
parent 2d8ca363db
commit a872cf7061
4 changed files with 4 additions and 4 deletions

View File

@@ -213,7 +213,7 @@ class BalanceReportHelper implements BalanceReportHelperInterface
$empty = new BalanceLine; $empty = new BalanceLine;
foreach ($accounts as $account) { foreach ($accounts as $account) {
$spent = $this->budgetRepository->spentInPeriodWithoutBudget(new Collection([$account]), $start, $end); $spent = $this->budgetRepository->spentInPeriodWoBudget(new Collection([$account]), $start, $end);
// budget // budget
$budgetEntry = new BalanceEntry; $budgetEntry = new BalanceEntry;
$budgetEntry->setAccount($account); $budgetEntry->setAccount($account);

View File

@@ -80,7 +80,7 @@ class BudgetReportHelper implements BudgetReportHelperInterface
} }
} }
$noBudget = $this->repository->spentInPeriodWithoutBudget($accounts, $start, $end); // stuff outside of budgets $noBudget = $this->repository->spentInPeriodWoBudget($accounts, $start, $end); // stuff outside of budgets
$budgetLine = new BudgetLine; $budgetLine = new BudgetLine;
$budgetLine->setOverspent($noBudget)->setSpent($noBudget); $budgetLine->setOverspent($noBudget)->setSpent($noBudget);
$object->addOverspent($noBudget)->addBudgetLine($budgetLine); $object->addOverspent($noBudget)->addBudgetLine($budgetLine);

View File

@@ -467,7 +467,7 @@ class BudgetRepository implements BudgetRepositoryInterface
* *
* @return string * @return string
*/ */
public function spentInPeriodWithoutBudgetCollector(Collection $accounts, Carbon $start, Carbon $end): string public function spentInPeriodWoBudget(Collection $accounts, Carbon $start, Carbon $end): string
{ {
/** @var JournalCollectorInterface $collector */ /** @var JournalCollectorInterface $collector */
$collector = app(JournalCollectorInterface::class, [$this->user]); $collector = app(JournalCollectorInterface::class, [$this->user]);

View File

@@ -166,7 +166,7 @@ interface BudgetRepositoryInterface
* *
* @return string * @return string
*/ */
public function spentInPeriodWithoutBudgetCollector(Collection $accounts, Carbon $start, Carbon $end): string; public function spentInPeriodWoBudget(Collection $accounts, Carbon $start, Carbon $end): string;
/** /**
* @param array $data * @param array $data