Fix broken test
This commit is contained in:
parent
b8f753a424
commit
a73e150ee3
@ -25,7 +25,7 @@ class AnimeListTransformer extends AbstractTransformer {
|
|||||||
if ($item['rating']['type'] === 'advanced')
|
if ($item['rating']['type'] === 'advanced')
|
||||||
{
|
{
|
||||||
$rating = (is_numeric($item['rating']['value']))
|
$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']
|
'ended' => $anime['finished_airing']
|
||||||
],
|
],
|
||||||
'anime' => [
|
'anime' => [
|
||||||
|
'age_rating' => $anime['age_rating'],
|
||||||
'title' => $anime['title'],
|
'title' => $anime['title'],
|
||||||
'alternate_title' => $alternate_title,
|
'alternate_title' => $alternate_title,
|
||||||
'slug' => $anime['slug'],
|
'slug' => $anime['slug'],
|
||||||
|
Loading…
Reference in New Issue
Block a user