mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 07:38:29 +00:00
Code cleanup
This commit is contained in:
@@ -45,7 +45,7 @@ class AttachmentRepository implements AttachmentRepositoryInterface
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @throws \Exception
|
||||
|
||||
*/
|
||||
public function destroy(Attachment $attachment): bool
|
||||
{
|
||||
@@ -165,8 +165,8 @@ class AttachmentRepository implements AttachmentRepositoryInterface
|
||||
public function getNoteText(Attachment $attachment): ?string
|
||||
{
|
||||
$note = $attachment->notes()->first();
|
||||
if (!is_null($note)) {
|
||||
return strval($note->text);
|
||||
if (null !== $note) {
|
||||
return (string)$note->text;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user