mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Remove JSON exceptions that are not thrown anyway.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user