Skip to content

Commit e8a0d9b

Browse files
authored
Merge pull request #83 from carlcs/patch-1
Update README.md
2 parents 310353f + 37454d0 commit e8a0d9b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)