Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 2b6b8bff43 - Show all commits

View File

@ -71,7 +71,7 @@ class AnimeListTransformer extends AbstractTransformer {
'id' => $item['id'], 'id' => $item['id'],
'watching_status' => $item['status'], 'watching_status' => $item['status'],
'notes' => $item['notes'], 'notes' => $item['notes'],
'rewatching' => (bool) $item['rewatching'], 'rewatching' => (bool)$item['rewatching'],
'rewatched' => $item['rewatched_times'], 'rewatched' => $item['rewatched_times'],
'user_rating' => $rating, 'user_rating' => $rating,
]; ];
@ -87,7 +87,7 @@ class AnimeListTransformer extends AbstractTransformer {
{ {
$genres = []; $genres = [];
foreach($raw_genres as $genre) foreach ($raw_genres as $genre)
{ {
$genres[] = $genre['name']; $genres[] = $genre['name'];
} }

View File

@ -52,7 +52,7 @@ class MangaListTransformer extends AbstractTransformer {
'id' => $item['id'], 'id' => $item['id'],
'reading_status' => $item['status'], 'reading_status' => $item['status'],
'notes' => $item['notes'], 'notes' => $item['notes'],
'rereading' => (bool) $item['rereading'], 'rereading' => (bool)$item['rereading'],
'reread' => $item['reread_count'], 'reread' => $item['reread_count'],
'user_rating' => $rating 'user_rating' => $rating
]; ];