From 282ba459600d6f872f87c443b510188ea24c47ee Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Wed, 22 Aug 2018 13:48:27 -0400 Subject: [PATCH] Update file header comments --- app/bootstrap.php | 2 +- build/header_comment.txt | 2 +- index.php | 2 +- src/API/APIRequestBuilder.php | 2 +- src/API/Anilist.php | 2 +- src/API/Anilist/AnilistRequestBuilder.php | 2 +- src/API/Anilist/AnilistTrait.php | 4 ++-- .../Mutations/UpdateAnimeListEntry.graphql | 15 +++++++++++++++ src/API/Anilist/ListItem.php | 2 +- src/API/Anilist/Model.php | 2 +- .../Anilist/Transformer/AnimeListTransformer.php | 2 +- .../Anilist/Transformer/MangaListTransformer.php | 2 +- src/API/CacheTrait.php | 2 +- src/API/Enum/AnimeWatchingStatus/Anilist.php | 2 +- src/API/Enum/AnimeWatchingStatus/Kitsu.php | 2 +- src/API/Enum/AnimeWatchingStatus/Route.php | 2 +- src/API/Enum/AnimeWatchingStatus/Title.php | 2 +- src/API/Enum/MangaReadingStatus/Anilist.php | 2 +- src/API/Enum/MangaReadingStatus/Kitsu.php | 2 +- src/API/Enum/MangaReadingStatus/Route.php | 2 +- src/API/Enum/MangaReadingStatus/Title.php | 2 +- src/API/FailedResponseException.php | 2 +- src/API/HummingbirdClient.php | 4 ++-- src/API/JsonAPI.php | 2 +- src/API/Kitsu.php | 2 +- src/API/Kitsu/Auth.php | 2 +- src/API/Kitsu/Enum/AnimeAiringStatus.php | 2 +- src/API/Kitsu/KitsuRequestBuilder.php | 2 +- src/API/Kitsu/KitsuTrait.php | 2 +- src/API/Kitsu/ListItem.php | 2 +- src/API/Kitsu/Model.php | 2 +- .../Kitsu/Transformer/AnimeListTransformer.php | 2 +- src/API/Kitsu/Transformer/AnimeTransformer.php | 2 +- .../Kitsu/Transformer/MangaListTransformer.php | 2 +- src/API/Kitsu/Transformer/MangaTransformer.php | 2 +- src/API/ListItemInterface.php | 2 +- src/API/Mapping/AnimeWatchingStatus.php | 2 +- src/API/Mapping/MangaReadingStatus.php | 2 +- src/API/ParallelAPIRequest.php | 2 +- src/API/XML.php | 2 +- src/AnimeClient.php | 2 +- src/Command/BaseCommand.php | 2 +- src/Command/CacheClear.php | 2 +- src/Command/CachePrime.php | 2 +- src/Command/SyncLists.php | 2 +- src/Controller.php | 2 +- src/Controller/Anime.php | 2 +- src/Controller/AnimeCollection.php | 2 +- src/Controller/Character.php | 2 +- src/Controller/Index.php | 2 +- src/Controller/Manga.php | 2 +- src/Controller/MangaCollection.php | 2 +- src/Dispatcher.php | 2 +- src/Helper/Menu.php | 2 +- src/MenuGenerator.php | 2 +- src/Model/API.php | 2 +- src/Model/Anime.php | 2 +- src/Model/AnimeCollection.php | 2 +- src/Model/Collection.php | 2 +- src/Model/DB.php | 2 +- src/Model/Manga.php | 2 +- src/Model/MangaCollection.php | 2 +- src/RoutingBase.php | 2 +- src/Types/AbstractType.php | 2 +- src/Types/Anime.php | 2 +- src/Types/AnimeFormItem.php | 2 +- src/Types/AnimeFormItemData.php | 2 +- src/Types/AnimeListItem.php | 2 +- src/Types/FormItem.php | 2 +- src/Types/FormItemData.php | 2 +- src/Types/MangaFormItem.php | 2 +- src/Types/MangaFormItemData.php | 2 +- src/Types/MangaListItem.php | 2 +- src/Types/MangaListItemDetail.php | 2 +- src/Types/MangaPage.php | 2 +- src/UrlGenerator.php | 2 +- src/Util.php | 2 +- src/constants.php | 2 +- tests/API/APIRequestBuilderTest.php | 2 +- tests/API/CacheTraitTest.php | 2 +- tests/API/JsonAPITest.php | 2 +- .../Transformer/AnimeListTransformerTest.php | 2 +- .../Kitsu/Transformer/AnimeTransformerTest.php | 2 +- .../Transformer/MangaListTransformerTest.php | 2 +- .../Kitsu/Transformer/MangaTransformerTest.php | 2 +- tests/API/KitsuTest.php | 2 +- tests/API/ParallelAPIRequestTest.php | 2 +- tests/API/XMLTest.php | 2 +- tests/AnimeClientTest.php | 2 +- tests/AnimeClientTestCase.php | 2 +- tests/Command/BaseCommandTest.php | 2 +- tests/ControllerTest.php | 2 +- tests/DispatcherTest.php | 2 +- tests/Helper/MenuHelperTest.php | 2 +- tests/MenuGeneratorTest.php | 2 +- tests/RequirementsTest.php | 2 +- tests/RoutingBaseTest.php | 2 +- tests/TestSessionHandler.php | 2 +- tests/UrlGeneratorTest.php | 2 +- tests/UtilTest.php | 2 +- 100 files changed, 116 insertions(+), 101 deletions(-) create mode 100644 src/API/Anilist/GraphQL/Mutations/UpdateAnimeListEntry.graphql diff --git a/app/bootstrap.php b/app/bootstrap.php index 9bb8e65a..1c1c224b 100644 --- a/app/bootstrap.php +++ b/app/bootstrap.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/build/header_comment.txt b/build/header_comment.txt index 5ca5be22..dc7627bb 100644 --- a/build/header_comment.txt +++ b/build/header_comment.txt @@ -1,7 +1,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/index.php b/index.php index 86f91900..c8aa3081 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/APIRequestBuilder.php b/src/API/APIRequestBuilder.php index 3fb2a7b5..22a102f9 100644 --- a/src/API/APIRequestBuilder.php +++ b/src/API/APIRequestBuilder.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Anilist.php b/src/API/Anilist.php index b45ae8d3..44a8468b 100644 --- a/src/API/Anilist.php +++ b/src/API/Anilist.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Anilist/AnilistRequestBuilder.php b/src/API/Anilist/AnilistRequestBuilder.php index 3d4e9d89..9e80d89c 100644 --- a/src/API/Anilist/AnilistRequestBuilder.php +++ b/src/API/Anilist/AnilistRequestBuilder.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Anilist/AnilistTrait.php b/src/API/Anilist/AnilistTrait.php index a9fae0c4..be24213e 100644 --- a/src/API/Anilist/AnilistTrait.php +++ b/src/API/Anilist/AnilistTrait.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * @@ -32,7 +32,7 @@ trait AnilistTrait { use ContainerAware; /** - * The request builder for the MAL API + * The request builder for the Anilist API * @var AnilistRequestBuilder */ protected $requestBuilder; diff --git a/src/API/Anilist/GraphQL/Mutations/UpdateAnimeListEntry.graphql b/src/API/Anilist/GraphQL/Mutations/UpdateAnimeListEntry.graphql new file mode 100644 index 00000000..0e42bcc0 --- /dev/null +++ b/src/API/Anilist/GraphQL/Mutations/UpdateAnimeListEntry.graphql @@ -0,0 +1,15 @@ +mutation ( + $id: Int, + $status: String, + $score: Int, + $progress: Int, + $repeat: Int +) { + SaveMediaListEntry ( + id: $id + status: $status + scoreRaw: $score + progress: $progress + repeat: $repeat + ) +} \ No newline at end of file diff --git a/src/API/Anilist/ListItem.php b/src/API/Anilist/ListItem.php index 087f5247..62d34e7f 100644 --- a/src/API/Anilist/ListItem.php +++ b/src/API/Anilist/ListItem.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Anilist/Model.php b/src/API/Anilist/Model.php index 25e93a6b..0093421c 100644 --- a/src/API/Anilist/Model.php +++ b/src/API/Anilist/Model.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Anilist/Transformer/AnimeListTransformer.php b/src/API/Anilist/Transformer/AnimeListTransformer.php index d4bc82d0..55db05a6 100644 --- a/src/API/Anilist/Transformer/AnimeListTransformer.php +++ b/src/API/Anilist/Transformer/AnimeListTransformer.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Anilist/Transformer/MangaListTransformer.php b/src/API/Anilist/Transformer/MangaListTransformer.php index c14922d2..66757090 100644 --- a/src/API/Anilist/Transformer/MangaListTransformer.php +++ b/src/API/Anilist/Transformer/MangaListTransformer.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/CacheTrait.php b/src/API/CacheTrait.php index de3ff71a..7f5b07dc 100644 --- a/src/API/CacheTrait.php +++ b/src/API/CacheTrait.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Enum/AnimeWatchingStatus/Anilist.php b/src/API/Enum/AnimeWatchingStatus/Anilist.php index 6a8ee915..72ea62e7 100644 --- a/src/API/Enum/AnimeWatchingStatus/Anilist.php +++ b/src/API/Enum/AnimeWatchingStatus/Anilist.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Enum/AnimeWatchingStatus/Kitsu.php b/src/API/Enum/AnimeWatchingStatus/Kitsu.php index 8bff6591..6d5f011a 100644 --- a/src/API/Enum/AnimeWatchingStatus/Kitsu.php +++ b/src/API/Enum/AnimeWatchingStatus/Kitsu.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Enum/AnimeWatchingStatus/Route.php b/src/API/Enum/AnimeWatchingStatus/Route.php index 05998b54..85d82b14 100644 --- a/src/API/Enum/AnimeWatchingStatus/Route.php +++ b/src/API/Enum/AnimeWatchingStatus/Route.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Enum/AnimeWatchingStatus/Title.php b/src/API/Enum/AnimeWatchingStatus/Title.php index 5a93d437..f1a86c53 100644 --- a/src/API/Enum/AnimeWatchingStatus/Title.php +++ b/src/API/Enum/AnimeWatchingStatus/Title.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Enum/MangaReadingStatus/Anilist.php b/src/API/Enum/MangaReadingStatus/Anilist.php index 2dbc6bec..f2f95bd9 100644 --- a/src/API/Enum/MangaReadingStatus/Anilist.php +++ b/src/API/Enum/MangaReadingStatus/Anilist.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Enum/MangaReadingStatus/Kitsu.php b/src/API/Enum/MangaReadingStatus/Kitsu.php index f7c157dc..705637f6 100644 --- a/src/API/Enum/MangaReadingStatus/Kitsu.php +++ b/src/API/Enum/MangaReadingStatus/Kitsu.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Enum/MangaReadingStatus/Route.php b/src/API/Enum/MangaReadingStatus/Route.php index ecd54366..e7bd7eee 100644 --- a/src/API/Enum/MangaReadingStatus/Route.php +++ b/src/API/Enum/MangaReadingStatus/Route.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/Enum/MangaReadingStatus/Title.php b/src/API/Enum/MangaReadingStatus/Title.php index 8188658f..1df173a1 100644 --- a/src/API/Enum/MangaReadingStatus/Title.php +++ b/src/API/Enum/MangaReadingStatus/Title.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/FailedResponseException.php b/src/API/FailedResponseException.php index b64ed202..c7287d68 100644 --- a/src/API/FailedResponseException.php +++ b/src/API/FailedResponseException.php @@ -2,7 +2,7 @@ /** * Hummingbird Anime List Client * - * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists + * An API client for Kitsu to manage anime and manga watch lists * * PHP version 7 * diff --git a/src/API/HummingbirdClient.php b/src/API/HummingbirdClient.php index 6f72e536..467e2356 100644 --- a/src/API/HummingbirdClient.php +++ b/src/API/HummingbirdClient.php @@ -1,8 +1,8 @@ -