diff --git a/src/Command/SyncLists.php b/src/Command/SyncLists.php index 971dbc5b..082e1599 100644 --- a/src/Command/SyncLists.php +++ b/src/Command/SyncLists.php @@ -568,7 +568,7 @@ final class SyncLists extends BaseCommand { $return['data']['data'] = array_merge($prevData, $return['data']['data']); } - dump($return); + // dump($return); return $return; } diff --git a/src/Types/FormItemData.php b/src/Types/FormItemData.php index 4b153e30..2ea9857d 100644 --- a/src/Types/FormItemData.php +++ b/src/Types/FormItemData.php @@ -24,6 +24,7 @@ abstract class FormItemData extends AbstractType { public $private; public $progress; public $rating; + public $ratingTwenty; public $reconsumeCount; public $reconsuming; public $status; diff --git a/tests/API/Kitsu/Transformer/MangaListTransformerTest.php b/tests/API/Kitsu/Transformer/MangaListTransformerTest.php index a310e2b3..30d677bd 100644 --- a/tests/API/Kitsu/Transformer/MangaListTransformerTest.php +++ b/tests/API/Kitsu/Transformer/MangaListTransformerTest.php @@ -95,7 +95,7 @@ class MangaListTransformerTest extends AnimeClientTestCase { 'reconsuming' => false, 'reconsumeCount' => 0, 'notes' => '', - 'rating' => 4.5 + 'ratingTwenty' => 18, ]) ]); diff --git a/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #0__1.php b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #0__1.php index 12a4098a..265ad7e3 100644 --- a/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #0__1.php +++ b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #0__1.php @@ -7,7 +7,7 @@ 'notes' => 'Very formulaic.', 'private' => false, 'progress' => 38, - 'rating' => 4, + 'ratingTwenty' => 16, 'reconsumeCount' => 0, 'reconsuming' => false, 'status' => 'current', diff --git a/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #1__1.php b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #1__1.php index d1272e19..32a01994 100644 --- a/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #1__1.php +++ b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #1__1.php @@ -7,7 +7,7 @@ 'notes' => 'Very formulaic.', 'private' => true, 'progress' => 38, - 'rating' => 4, + 'ratingTwenty' => 16, 'reconsumeCount' => 0, 'reconsuming' => true, 'status' => 'current', diff --git a/tests/test_data/Kitsu/animeListItemBeforeTransform.json b/tests/test_data/Kitsu/animeListItemBeforeTransform.json index 3421281c..242d0405 100644 --- a/tests/test_data/Kitsu/animeListItemBeforeTransform.json +++ b/tests/test_data/Kitsu/animeListItemBeforeTransform.json @@ -12,6 +12,7 @@ "notes": null, "private": false, "rating": null, + "ratingTwenty": null, "updatedAt": "2017-01-13T01:32:31.832Z" }, "relationships": { diff --git a/tests/test_data/Kitsu/mangaListBeforeTransform.json b/tests/test_data/Kitsu/mangaListBeforeTransform.json index 9380f523..67a4af8e 100644 --- a/tests/test_data/Kitsu/mangaListBeforeTransform.json +++ b/tests/test_data/Kitsu/mangaListBeforeTransform.json @@ -14,6 +14,7 @@ "notes": "", "private": false, "rating": "4.5", + "ratingTwenty": "18", "updatedAt": "2017-01-09T17:51:16.691Z" }, "relationships": { @@ -85,6 +86,7 @@ "notes": "", "private": false, "rating": "3.5", + "ratingTwenty": "14", "updatedAt": "2017-01-09T17:50:19.594Z" }, "relationships": { @@ -156,6 +158,7 @@ "notes": "", "private": false, "rating": "4.5", + "ratingTwenty": "18", "updatedAt": "2016-04-07T17:10:13.022Z" }, "relationships": { @@ -227,6 +230,7 @@ "notes": "", "private": false, "rating": null, + "ratingTwenty": null, "updatedAt": "2016-03-08T15:45:45.818Z" }, "relationships": { @@ -298,6 +302,7 @@ "notes": "", "private": false, "rating": "4.0", + "ratingTwenty": "16", "updatedAt": "2016-02-02T15:06:07.166Z" }, "relationships": {