Merge pull request #6 from timw4mail/scrutinizer-patch-1

Scrutinizer Auto-Fixes
This commit is contained in:
Timothy Warren 2015-10-12 11:00:09 -04:00
commit 725915060b
2 changed files with 3 additions and 3 deletions

View File

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

View File

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