Various code cleanup.

This commit is contained in:
James Cole
2018-02-09 19:11:55 +01:00
parent ac98822a55
commit 95648c37b3
30 changed files with 142 additions and 256 deletions

View File

@@ -54,7 +54,7 @@ class AttachmentTransformer extends TransformerAbstract
'rel' => 'self',
'uri' => '/attachment/' . $attachment->id,
],
]
],
];
}

View File

@@ -48,12 +48,12 @@ class NoteTransformer extends TransformerAbstract
'title' => $note->title,
'text' => $note->text,
'markdown' => $converter->convertToHtml($note->text),
'links' => [
'links' => [
[
'rel' => 'self',
'uri' => '/note/' . $note->id,
],
]
],
];
}