Reformat various code.

This commit is contained in:
James Cole
2022-03-29 15:10:05 +02:00
parent 60786461a9
commit 123693096c
134 changed files with 336 additions and 141 deletions

View File

@@ -142,9 +142,7 @@ class AccountUpdateService
//$liabilityType = $data['liability_type'] ?? '';
if ($this->isLiability($account) && array_key_exists('liability_type', $data)) {
$type = $this->getAccountType($data['liability_type']);
if (null !== $type) {
$account->account_type_id = $type->id;
}
$account->account_type_id = $type->id;
}
// set liability, alternative method used in v1 layout: