Code optimizations.

This commit is contained in:
James Cole
2018-07-23 21:49:15 +02:00
parent 4fa5f4e5a3
commit 06d22e843a
33 changed files with 784 additions and 603 deletions

View File

@@ -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;
}