Remove JSON exceptions that are not thrown anyway.

This commit is contained in:
James Cole
2023-12-22 07:47:13 +01:00
parent 34e22e0747
commit 58dea55d38
52 changed files with 105 additions and 211 deletions

View File

@@ -42,8 +42,7 @@ class AccountTasker implements AccountTaskerInterface
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
public function getAccountReport(Collection $accounts, Carbon $start, Carbon $end): array
{
$yesterday = clone $start;
@@ -110,8 +109,7 @@ class AccountTasker implements AccountTaskerInterface
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
public function getExpenseReport(Carbon $start, Carbon $end, Collection $accounts): array
{
// get all expenses for the given accounts in the given period!
@@ -142,8 +140,7 @@ class AccountTasker implements AccountTaskerInterface
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
public function getIncomeReport(Carbon $start, Carbon $end, Collection $accounts): array
{
// get all incomes for the given accounts in the given period!
@@ -178,8 +175,7 @@ class AccountTasker implements AccountTaskerInterface
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
private function groupExpenseByDestination(array $array): array
{
$defaultCurrency = app('amount')->getDefaultCurrencyByUserGroup($this->user->userGroup);
@@ -239,8 +235,7 @@ class AccountTasker implements AccountTaskerInterface
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
private function groupIncomeBySource(array $array): array
{
$defaultCurrency = app('amount')->getDefaultCurrencyByUserGroup($this->user->userGroup);