Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Method no longer used.
James Cole7d1de0da174d
diff --git a/app/Repositories/Category/SingleCategoryRepository.php b/app/Repositories/Category/SingleCategoryRepository.phpindex 8393eb8689..320c78e7f0 100644--- a/app/Repositories/Category/SingleCategoryRepository.php+++ b/app/Repositories/Category/SingleCategoryRepository.php@@ -168,28 +168,6 @@ class SingleCategoryRepository extends ComponentRepository implements SingleCatereturn null;}- /**- * TODO this method is not optimal, and should be replaced.- *- * @deprecated- *- * @param Category $category- * @param \Carbon\Carbon $start- * @param \Carbon\Carbon $end- *- * @return string- */- public function spentInPeriod(Category $category, Carbon $start, Carbon $end)- {- $sum = $category->transactionjournals()->transactionTypes([TransactionType::WITHDRAWAL])->before($end)->after($start)->get(['transaction_journals.*'])- ->sum(- 'amount'- );-- return $sum;- }--/*** Returns an array with the following key:value pairs:*diff --git a/app/Repositories/Category/SingleCategoryRepositoryInterface.php b/app/Repositories/Category/SingleCategoryRepositoryInterface.phpindex ccad049bad..6e6b4b76c2 100644--- a/app/Repositories/Category/SingleCategoryRepositoryInterface.php+++ b/app/Repositories/Category/SingleCategoryRepositoryInterface.php@@ -88,17 +88,6 @@ interface SingleCategoryRepositoryInterface*/public function getLatestActivity(Category $category);- /**- * @deprecated- *- * @param Category $category- * @param \Carbon\Carbon $start- * @param \Carbon\Carbon $end- *- * @return string- */- public function spentInPeriod(Category $category, Carbon $start, Carbon $end);-/*** Returns an array with the following key:value pairs:*