mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Remove unused method.
This commit is contained in:
@@ -103,31 +103,6 @@ class ReportHelper implements ReportHelperInterface
|
|||||||
return $collection;
|
return $collection;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param Carbon $start
|
|
||||||
* @param Carbon $end
|
|
||||||
* @param Collection $accounts
|
|
||||||
*
|
|
||||||
* @return CategoryCollection
|
|
||||||
*/
|
|
||||||
public function getCategoryReport(Collection $accounts, Carbon $start, Carbon $end): CategoryCollection
|
|
||||||
{
|
|
||||||
$object = new CategoryCollection;
|
|
||||||
/** @var CategoryRepositoryInterface $repository */
|
|
||||||
$repository = app(CategoryRepositoryInterface::class);
|
|
||||||
$categories = $repository->getCategories();
|
|
||||||
|
|
||||||
/** @var Category $category */
|
|
||||||
foreach ($categories as $category) {
|
|
||||||
$spent = $repository->spentInPeriod(new Collection([$category]), $accounts, $start, $end);
|
|
||||||
// CategoryCollection expects the amount in $spent:
|
|
||||||
$category->spent = $spent;
|
|
||||||
$object->addCategory($category);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $object;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Carbon $date
|
* @param Carbon $date
|
||||||
*
|
*
|
||||||
|
@@ -42,15 +42,6 @@ interface ReportHelperInterface
|
|||||||
*/
|
*/
|
||||||
public function getBillReport(Carbon $start, Carbon $end, Collection $accounts): BillCollection;
|
public function getBillReport(Carbon $start, Carbon $end, Collection $accounts): BillCollection;
|
||||||
|
|
||||||
/**
|
|
||||||
* @param Carbon $start
|
|
||||||
* @param Carbon $end
|
|
||||||
* @param Collection $accounts
|
|
||||||
*
|
|
||||||
* @return CategoryCollection
|
|
||||||
*/
|
|
||||||
public function getCategoryReport(Collection $accounts, Carbon $start, Carbon $end): CategoryCollection;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Carbon $date
|
* @param Carbon $date
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user