mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Reformat various code.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
@@ -49,6 +49,8 @@ class BillUpdateService
|
||||
* @param array $data
|
||||
*
|
||||
* @return Bill
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* @throws \JsonException
|
||||
*/
|
||||
public function update(Bill $bill, array $data): Bill
|
||||
{
|
||||
|
@@ -43,6 +43,7 @@ class GroupUpdateService
|
||||
* @param array $data
|
||||
*
|
||||
* @return TransactionGroup
|
||||
* @throws DuplicateTransactionException
|
||||
* @throws FireflyException
|
||||
*/
|
||||
public function update(TransactionGroup $transactionGroup, array $data): TransactionGroup
|
||||
@@ -191,8 +192,9 @@ class GroupUpdateService
|
||||
*
|
||||
* @return TransactionJournal|null
|
||||
*
|
||||
* @throws FireflyException
|
||||
* @throws DuplicateTransactionException
|
||||
* @throws FireflyException
|
||||
* @throws \JsonException
|
||||
*/
|
||||
private function createTransactionJournal(TransactionGroup $transactionGroup, array $data): ?TransactionJournal
|
||||
{
|
||||
|
Reference in New Issue
Block a user