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

@@ -68,8 +68,7 @@ class AccountFactory
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
public function findOrCreate(string $accountName, string $accountType): Account
{
app('log')->debug(sprintf('findOrCreate("%s", "%s")', $accountName, $accountType));
@@ -101,8 +100,7 @@ class AccountFactory
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
public function create(array $data): Account
{
app('log')->debug('Now in AccountFactory::create()');
@@ -173,8 +171,7 @@ class AccountFactory
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
private function createAccount(AccountType $type, array $data): Account
{
$this->accountRepository->resetAccountOrder();
@@ -242,8 +239,7 @@ class AccountFactory
/**
* @throws FireflyException
* @throws \JsonException
*/
* */
private function cleanMetaDataArray(Account $account, array $data): array
{
$currencyId = array_key_exists('currency_id', $data) ? (int)$data['currency_id'] : 0;