Version 5.1 - All the GraphQL #32

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

View File

@ -25,7 +25,7 @@ class AnimeListTransformer extends AbstractTransformer {
if ($item['rating']['type'] === 'advanced')
{
$rating = (is_numeric($item['rating']['value']))
? 2 * $item['rating']['value']
? intval(2 * $item['rating']['value'])
: '-';
}
@ -55,6 +55,7 @@ class AnimeListTransformer extends AbstractTransformer {
'ended' => $anime['finished_airing']
],
'anime' => [
'age_rating' => $anime['age_rating'],
'title' => $anime['title'],
'alternate_title' => $alternate_title,
'slug' => $anime['slug'],