mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 23:50:09 +00:00
Code optimizations.
This commit is contained in:
@@ -80,14 +80,14 @@ class AttachmentRepository implements AttachmentRepositoryInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
*
|
||||
* @param int $attachmentId
|
||||
* @deprecated
|
||||
* @return Attachment
|
||||
*/
|
||||
public function findWithoutUser(int $id): Attachment
|
||||
public function findWithoutUser(int $attachmentId): Attachment
|
||||
{
|
||||
|
||||
$attachment = Attachment::find($id);
|
||||
$attachment = Attachment::find($attachmentId);
|
||||
if (null === $attachment) {
|
||||
return new Attachment;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user