Code cleanup

This commit is contained in:
James Cole
2018-04-02 15:10:40 +02:00
parent fa7ab45a40
commit a3c34e6b3c
151 changed files with 802 additions and 990 deletions

View File

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