@@ -465,7 +465,7 @@ Here are a few endpoint examples, and what their response would look like.
465465 return [
466466 'title' => $entry->title,
467467 'url' => $entry->url,
468- 'description' => (string) $entry->description,
468+ 'description' => (string)$entry->description,
469469 'photos' => $photos
470470 ];
471471 },
@@ -501,16 +501,16 @@ Note that `photos`, `body`, `summary`, and `tags` are imaginary custom fields.
501501 $image = $entry->photos->one();
502502
503503 return [
504- 'id' => (string) $entry->id,
504+ 'id' => (string)$entry->id,
505505 'url' => $entry->url,
506506 'title' => $entry->title,
507- 'content_html' => (string) $entry->body,
507+ 'content_html' => (string)$entry->body,
508508 'summary' => $entry->summary,
509509 'image' => $image ? $image->url : null,
510510 'date_published' => $entry->postDate->format(\DateTime::ATOM),
511511 'date_modified' => $entry->dateUpdated->format(\DateTime::ATOM),
512512 'author' => ['name' => $entry->author->name],
513- 'tags' => array_map('strval', $entry->tags->find ()),
513+ 'tags' => array_map('strval', $entry->tags->all ()),
514514 ];
515515 },
516516 'meta' => [
0 commit comments