From 32190db8bb797e3ddf4ba9bfc2196a2286c75b5a Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 6 Apr 2016 21:05:43 +0200 Subject: [PATCH] Fixed tests. --- app/Helpers/Report/ReportQuery.php | 2 +- app/Repositories/RuleGroup/RuleGroupRepository.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Helpers/Report/ReportQuery.php b/app/Helpers/Report/ReportQuery.php index 6910af7b7f..dd451834b9 100644 --- a/app/Helpers/Report/ReportQuery.php +++ b/app/Helpers/Report/ReportQuery.php @@ -72,7 +72,7 @@ class ReportQuery implements ReportQueryInterface * * @return Collection */ - public function expense(Collection $accounts, Carbon $start, Carbon $end): array + public function expense(Collection $accounts, Carbon $start, Carbon $end): Collection { $ids = $accounts->pluck('id')->toArray(); $set = Auth::user()->transactionjournals() diff --git a/app/Repositories/RuleGroup/RuleGroupRepository.php b/app/Repositories/RuleGroup/RuleGroupRepository.php index cec33c66c3..f2e74925d8 100644 --- a/app/Repositories/RuleGroup/RuleGroupRepository.php +++ b/app/Repositories/RuleGroup/RuleGroupRepository.php @@ -155,6 +155,7 @@ class RuleGroupRepository implements RuleGroupRepositoryInterface $ruleGroup->order = ($ruleGroup->order - 1); $ruleGroup->save(); $this->resetRuleGroupOrder(); + return true; } /**