mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Code clean up.
This commit is contained in:
@@ -168,13 +168,11 @@ class AttachmentRepository implements AttachmentRepositoryInterface
|
||||
*/
|
||||
public function update(Attachment $attachment, array $data): Attachment
|
||||
{
|
||||
|
||||
$attachment->title = $data['title'];
|
||||
$attachment->description = $data['description'];
|
||||
$attachment->notes = $data['notes'];
|
||||
$attachment->save();
|
||||
|
||||
return $attachment;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,4 +97,3 @@ interface AttachmentRepositoryInterface
|
||||
*/
|
||||
public function update(Attachment $attachment, array $attachmentData): Attachment;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user