Various code cleanup.

This commit is contained in:
James Cole
2023-12-22 20:12:38 +01:00
parent 067d160c13
commit 581e5d7330
69 changed files with 361 additions and 317 deletions

View File

@@ -121,7 +121,7 @@ class ConvertToDeposit implements ActionInterface
* Is converted to a deposit from C to A.
*
* @throws FireflyException
* */
*/
private function convertWithdrawalArray(TransactionJournal $journal): bool
{
$user = $journal->user;
@@ -210,7 +210,7 @@ class ConvertToDeposit implements ActionInterface
* The source account is replaced.
*
* @throws FireflyException
* */
*/
private function convertTransferArray(TransactionJournal $journal): bool
{
$user = $journal->user;

View File

@@ -51,6 +51,7 @@ class ConvertToTransfer implements ActionInterface
/**
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings(PHPMD.NPathComplexity)
*/
public function actOnArray(array $journal): bool
{

View File

@@ -116,7 +116,7 @@ class ConvertToWithdrawal implements ActionInterface
/**
* @throws FireflyException
* */
*/
private function convertDepositArray(TransactionJournal $journal): bool
{
$user = $journal->user;
@@ -202,7 +202,7 @@ class ConvertToWithdrawal implements ActionInterface
* Output is a withdrawal from A to C.
*
* @throws FireflyException
* */
*/
private function convertTransferArray(TransactionJournal $journal): bool
{
// find or create expense account.