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

@@ -261,8 +261,7 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
public function store(array $data): BudgetLimit
{
// if no currency has been provided, use the user's default currency:
@@ -317,8 +316,7 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
public function update(BudgetLimit $budgetLimit, array $data): BudgetLimit
{
$budgetLimit->amount = array_key_exists('amount', $data) ? $data['amount'] : $budgetLimit->amount;

View File

@@ -233,8 +233,7 @@ class BudgetRepository implements BudgetRepositoryInterface
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
public function update(Budget $budget, array $data): Budget
{
app('log')->debug('Now in update()');
@@ -565,8 +564,7 @@ class BudgetRepository implements BudgetRepositoryInterface
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
public function store(array $data): Budget
{
$order = $this->getMaxOrder();
@@ -752,8 +750,7 @@ class BudgetRepository implements BudgetRepositoryInterface
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
private function updateAutoBudget(Budget $budget, array $data): void
{
// update or create auto-budget: