Clean up code.

This commit is contained in:
James Cole
2020-10-23 19:11:25 +02:00
parent 0845e1cb7d
commit 8dbd785ab8
57 changed files with 84 additions and 441 deletions

View File

@@ -52,9 +52,6 @@ class PiggyBankEventTransformer extends AbstractTransformer
$this->repository = app(AccountRepositoryInterface::class);
$this->currencyRepos = app(CurrencyRepositoryInterface::class);
$this->piggyRepos = app(PiggyBankRepositoryInterface::class);
if ('testing' === config('app.env')) {
Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this)));
}
}
/**
@@ -84,7 +81,7 @@ class PiggyBankEventTransformer extends AbstractTransformer
$groupId = (int) $event->transactionJournal->transaction_group_id;
$journalId = (int) $journalId;
}
$data = [
return [
'id' => (int) $event->id,
'created_at' => $event->created_at->toAtomString(),
'updated_at' => $event->updated_at->toAtomString(),
@@ -102,8 +99,6 @@ class PiggyBankEventTransformer extends AbstractTransformer
],
],
];
return $data;
}
}