mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Clean up code.
This commit is contained in:
@@ -45,10 +45,6 @@ class TransactionLinkTransformer extends AbstractTransformer
|
||||
public function __construct()
|
||||
{
|
||||
$this->repository = app(JournalRepositoryInterface::class);
|
||||
|
||||
if ('testing' === config('app.env')) {
|
||||
Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this)));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,7 +55,7 @@ class TransactionLinkTransformer extends AbstractTransformer
|
||||
public function transform(TransactionJournalLink $link): array
|
||||
{
|
||||
$notes = $this->repository->getLinkNoteText($link);
|
||||
$data = [
|
||||
return [
|
||||
'id' => (int)$link->id,
|
||||
'created_at' => $link->created_at->toAtomString(),
|
||||
'updated_at' => $link->updated_at->toAtomString(),
|
||||
@@ -74,7 +70,5 @@ class TransactionLinkTransformer extends AbstractTransformer
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user