Various code cleanup.

This commit is contained in:
James Cole
2021-05-24 08:50:17 +02:00
parent 3ec9753808
commit 815fd5ff6b
135 changed files with 643 additions and 582 deletions

View File

@@ -131,6 +131,7 @@ class AccountFactory
* @param array $data
*
* @return AccountType|null
* @throws FireflyException
*/
protected function getAccountType(array $data): ?AccountType
{
@@ -175,9 +176,11 @@ class AccountFactory
}
/**
* @param array $data
* @param AccountType $type
* @param array $data
*
* @return Account
* @throws \JsonException
*/
private function createAccount(AccountType $type, array $data): Account
{
@@ -244,6 +247,7 @@ class AccountFactory
* @param array $data
*
* @return array
* @throws \JsonException
*/
private function cleanMetaDataArray(Account $account, array $data): array
{