Various code cleanup.

This commit is contained in:
James Cole
2018-03-25 09:01:43 +02:00
parent dd9694890a
commit 6660306ac4
46 changed files with 327 additions and 121 deletions

View File

@@ -161,14 +161,14 @@ class AttachmentRepository implements AttachmentRepositoryInterface
*
* @return string
*/
public function getNoteText(Attachment $attachment): string
public function getNoteText(Attachment $attachment): ?string
{
$note = $attachment->notes()->first();
if (!is_null($note)) {
return strval($note->text);
}
return '';
return null;
}
/**