Renamed the other method.

This commit is contained in:
James Cole 2017-01-05 09:10:04 +01:00
parent 2d8ca363db
commit a872cf7061
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
4 changed files with 4 additions and 4 deletions

View File

@ -213,7 +213,7 @@ class BalanceReportHelper implements BalanceReportHelperInterface
$empty = new BalanceLine;
foreach ($accounts as $account) {
$spent = $this->budgetRepository->spentInPeriodWithoutBudget(new Collection([$account]), $start, $end);
$spent = $this->budgetRepository->spentInPeriodWoBudget(new Collection([$account]), $start, $end);
// budget
$budgetEntry = new BalanceEntry;
$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->setOverspent($noBudget)->setSpent($noBudget);
$object->addOverspent($noBudget)->addBudgetLine($budgetLine);

View File

@ -467,7 +467,7 @@ class BudgetRepository implements BudgetRepositoryInterface
*
* @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 */
$collector = app(JournalCollectorInterface::class, [$this->user]);

View File

@ -166,7 +166,7 @@ interface BudgetRepositoryInterface
*
* @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