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

@@ -49,7 +49,7 @@ class AccountTransformer extends AbstractTransformer
* Transform the account.
*
* @throws FireflyException
* */
*/
public function transform(Account $account): array
{
$this->repository->setUser($account->user);
@@ -156,7 +156,7 @@ class AccountTransformer extends AbstractTransformer
/**
* @throws FireflyException
* */
*/
private function getCurrency(Account $account): array
{
$currency = $this->repository->getAccountCurrency($account);

View File

@@ -53,6 +53,7 @@ class BillTransformer extends AbstractTransformer
* Transform the bill.
*
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings(PHPMD.NPathComplexity)
*/
public function transform(Bill $bill): array
{

View File

@@ -49,7 +49,7 @@ class PiggyBankEventTransformer extends AbstractTransformer
* Convert piggy bank event.
*
* @throws FireflyException
* */
*/
public function transform(PiggyBankEvent $event): array
{
// get account linked to piggy bank

View File

@@ -50,7 +50,7 @@ class PiggyBankTransformer extends AbstractTransformer
* Transform the piggy bank.
*
* @throws FireflyException
* */
*/
public function transform(PiggyBank $piggyBank): array
{
$account = $piggyBank->account;

View File

@@ -139,7 +139,7 @@ class PiggyBankTransformer extends AbstractTransformer
* Transform the piggy bank.
*
* @throws FireflyException
* */
*/
public function transform(PiggyBank $piggyBank): array
{
// $account = $piggyBank->account;