Various code cleanup.

This commit is contained in:
James Cole
2021-09-18 10:20:19 +02:00
parent 481a6bdd5f
commit 3589c9f60f
137 changed files with 369 additions and 282 deletions

View File

@@ -33,6 +33,7 @@ use FireflyIII\Services\Internal\Support\AccountServiceTrait;
use FireflyIII\Services\Internal\Support\LocationServiceTrait;
use FireflyIII\Services\Internal\Update\AccountUpdateService;
use FireflyIII\User;
use JsonException;
use Log;
/**
@@ -107,6 +108,7 @@ class AccountFactory
*
* @return Account
* @throws FireflyException
* @throws JsonException
*/
public function create(array $data): Account
{
@@ -180,7 +182,7 @@ class AccountFactory
* @param array $data
*
* @return Account
* @throws \JsonException
* @throws JsonException
*/
private function createAccount(AccountType $type, array $data): Account
{
@@ -247,7 +249,6 @@ class AccountFactory
* @param array $data
*
* @return array
* @throws \JsonException
*/
private function cleanMetaDataArray(Account $account, array $data): array
{
@@ -358,6 +359,9 @@ class AccountFactory
/**
* @param Account $account
* @param array $data
*
* @throws FireflyException
* @throws JsonException
*/
private function storeOrder(Account $account, array $data): void
{