mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code cleanup.
This commit is contained in:
@@ -35,8 +35,6 @@ class AttachmentTransformer extends AbstractTransformer
|
||||
|
||||
/**
|
||||
* BillTransformer constructor.
|
||||
*
|
||||
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
@@ -45,10 +43,6 @@ class AttachmentTransformer extends AbstractTransformer
|
||||
|
||||
/**
|
||||
* Transform attachment.
|
||||
*
|
||||
* @param Attachment $attachment
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function transform(Attachment $attachment): array
|
||||
{
|
||||
@@ -71,7 +65,7 @@ class AttachmentTransformer extends AbstractTransformer
|
||||
'links' => [
|
||||
[
|
||||
'rel' => 'self',
|
||||
'uri' => '/attachment/' . $attachment->id,
|
||||
'uri' => '/attachment/'.$attachment->id,
|
||||
],
|
||||
],
|
||||
];
|
||||
|
Reference in New Issue
Block a user