Code reordering and reformatting. I should really start employing style CI.

This commit is contained in:
James Cole
2021-09-18 10:26:12 +02:00
parent 9b9d52e99f
commit 4003cea759
344 changed files with 2776 additions and 2605 deletions

View File

@@ -91,7 +91,7 @@ class ConvertToTransfer implements ActionInterface
return $this->convertDepositArray($journal, $asset);
}
return false;
return false;
}
/**

View File

@@ -73,7 +73,7 @@ class ConvertToWithdrawal implements ActionInterface
return $this->convertTransferArray($journal);
}
return false;
return false;
}
private function convertDepositArray(array $journal): bool

View File

@@ -55,8 +55,8 @@ class SetSourceAccount implements ActionInterface
*/
public function actOnArray(array $journal): bool
{
$user = User::find($journal['user_id']);
$type = $journal['transaction_type_type'];
$user = User::find($journal['user_id']);
$type = $journal['transaction_type_type'];
/** @var TransactionJournal|null $object */
$object = $user->transactionJournals()->find((int)$journal['transaction_journal_id']);
$this->repository = app(AccountRepositoryInterface::class);

View File

@@ -98,7 +98,11 @@ class UpdatePiggybank implements ActionInterface
return true;
}
Log::info(sprintf('Piggy bank is not linked to source ("#%d") or destination ("#%d"), so no action will be taken.', $source->account_id, $destination->account_id));
Log::info(
sprintf(
'Piggy bank is not linked to source ("#%d") or destination ("#%d"), so no action will be taken.', $source->account_id, $destination->account_id
)
);
return true;
}