From 2b01871e5b035dd7b5c684486956ea89738c58bd Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 2 Dec 2020 12:42:47 -0500 Subject: [PATCH 01/14] Add random anime and random manga pages --- app/appConf/routes.php | 8 ++ src/AnimeClient/API/Kitsu/Model.php | 18 +++ .../API/Kitsu/Queries/RandomMedia.graphql | 134 ++++++++++++++++++ .../Kitsu/Transformer/AnimeTransformer.php | 4 +- .../Kitsu/Transformer/MangaTransformer.php | 5 +- src/AnimeClient/Controller/Anime.php | 38 +++++ src/AnimeClient/Controller/Manga.php | 38 +++++ src/AnimeClient/Model/Anime.php | 10 ++ src/AnimeClient/Model/Manga.php | 10 ++ 9 files changed, 258 insertions(+), 7 deletions(-) create mode 100644 src/AnimeClient/API/Kitsu/Queries/RandomMedia.graphql diff --git a/app/appConf/routes.php b/app/appConf/routes.php index 48f3a357..0af207ef 100644 --- a/app/appConf/routes.php +++ b/app/appConf/routes.php @@ -51,6 +51,10 @@ $routes = [ 'action' => 'add', 'verb' => 'post', ], + 'anime.random' => [ + 'path' => '/anime/details/random', + 'action' => 'random', + ], 'anime.details' => [ 'path' => '/anime/details/{id}', 'action' => 'details', @@ -84,6 +88,10 @@ $routes = [ 'action' => 'delete', 'verb' => 'post', ], + 'manga.random' => [ + 'path' => '/manga/details/random', + 'action' => 'random', + ], 'manga.details' => [ 'path' => '/manga/details/{id}', 'action' => 'details', diff --git a/src/AnimeClient/API/Kitsu/Model.php b/src/AnimeClient/API/Kitsu/Model.php index 4d3740e2..a3505567 100644 --- a/src/AnimeClient/API/Kitsu/Model.php +++ b/src/AnimeClient/API/Kitsu/Model.php @@ -256,6 +256,15 @@ final class Model { return $this->animeTransformer->transform($baseData); } + public function getRandomAnime(): Anime + { + $baseData = $this->requestBuilder->runQuery('RandomMedia', [ + 'type' => 'ANIME' + ]); + + return $this->animeTransformer->transform($baseData); + } + /** * Get information about a particular anime * @@ -392,6 +401,15 @@ final class Model { return $this->mangaTransformer->transform($baseData); } + public function getRandomManga(): MangaPage + { + $baseData = $this->requestBuilder->runQuery('RandomMedia', [ + 'type' => 'MANGA' + ]); + + return $this->mangaTransformer->transform($baseData); + } + /** * Get information about a particular manga * diff --git a/src/AnimeClient/API/Kitsu/Queries/RandomMedia.graphql b/src/AnimeClient/API/Kitsu/Queries/RandomMedia.graphql new file mode 100644 index 00000000..11edbdf8 --- /dev/null +++ b/src/AnimeClient/API/Kitsu/Queries/RandomMedia.graphql @@ -0,0 +1,134 @@ +query ($type: MediaTypeEnum!) { + randomMedia(mediaType: $type, ageRatings: [G,PG,R]) { + id + ageRating + ageRatingGuide + posterImage { + original { + height + name + url + width + } + views { + height + name + url + width + } + } + categories(first: 100) { + nodes { + title + } + } + characters(first: 100) { + nodes { + character { + id + names { + alternatives + canonical + localized + } + image { + original { + height + name + url + width + } + } + slug + } + role + } + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + } + description + startDate + endDate + sfw + slug + mappings(first: 10) { + nodes { + externalId + externalSite + } + } + staff(first: 100) { + nodes { + person { + id + birthday + image { + original { + height + name + url + width + } + views { + height + name + url + width + } + } + names { + alternatives + canonical + localized + } + slug + } + role + } + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + } + status + titles { + alternatives + canonical + canonicalLocale + localized + } + ...on Anime { + episodeCount + episodeLength + totalLength + season + streamingLinks(first: 10) { + nodes { + dubs + subs + regions + streamer { + id + siteName + } + url + } + } + subtype + totalLength + youtubeTrailerVideoId + } + ...on Manga { + chapterCount + volumeCount + subtype + } + } + +} diff --git a/src/AnimeClient/API/Kitsu/Transformer/AnimeTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/AnimeTransformer.php index 3a007c17..3f2b7fa8 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/AnimeTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/AnimeTransformer.php @@ -34,9 +34,7 @@ final class AnimeTransformer extends AbstractTransformer { */ public function transform($item): AnimePage { - $base = array_key_exists('findAnimeBySlug', $item['data']) - ? $item['data']['findAnimeBySlug'] - : $item['data']['findAnimeById']; + $base = $item['data']['findAnimeBySlug'] ?? $item['data']['findAnimeById'] ?? $item['data']['randomMedia']; $characters = []; $links = []; $staff = []; diff --git a/src/AnimeClient/API/Kitsu/Transformer/MangaTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/MangaTransformer.php index 350a4486..e643ec1e 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/MangaTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/MangaTransformer.php @@ -34,10 +34,7 @@ final class MangaTransformer extends AbstractTransformer { */ public function transform($item): MangaPage { - $base = array_key_exists('findMangaBySlug', $item['data']) - ? $item['data']['findMangaBySlug'] - : $item['data']['findMangaById']; - + $base = $item['data']['findMangaBySlug'] ?? $item['data']['findMangaById'] ?? $item['data']['randomMedia']; $characters = []; $links = []; $staff = []; diff --git a/src/AnimeClient/Controller/Anime.php b/src/AnimeClient/Controller/Anime.php index 41326edc..5b8acee6 100644 --- a/src/AnimeClient/Controller/Anime.php +++ b/src/AnimeClient/Controller/Anime.php @@ -348,5 +348,43 @@ final class Anime extends BaseController { ); } } + + public function random() + { + try + { + $data = $this->model->getRandomAnime(); + + if ($data->isEmpty()) + { + $this->notFound( + $this->config->get('whose_list') . + "'s Anime List · Anime · " . + 'Anime not found', + 'Anime Not Found' + ); + + return; + } + + $this->outputHTML('anime/details', [ + 'title' => $this->formatTitle( + $this->config->get('whose_list') . "'s Anime List", + 'Anime', + $data->title + ), + 'data' => $data, + ]); + } + catch (TypeError $e) + { + $this->notFound( + $this->config->get('whose_list') . + "'s Anime List · Anime · " . + 'Anime not found', + 'Anime Not Found' + ); + } + } } // End of AnimeController.php \ No newline at end of file diff --git a/src/AnimeClient/Controller/Manga.php b/src/AnimeClient/Controller/Manga.php index 824d474f..3fe27ce2 100644 --- a/src/AnimeClient/Controller/Manga.php +++ b/src/AnimeClient/Controller/Manga.php @@ -338,5 +338,43 @@ final class Manga extends Controller { 'staff' => $staff, ]); } + + /** + * View details of a random manga + * + * @throws ContainerException + * @throws NotFoundException + * @throws InvalidArgumentException + * @throws Throwable + * @return void + */ + public function random(): void + { + $data = $this->model->getRandomManga(); + $staff = []; + $characters = []; + + if ($data->isEmpty()) + { + $this->notFound( + $this->config->get('whose_list') . + "'s Manga List · Manga · " . + 'Manga not found', + 'Manga Not Found' + ); + return; + } + + $this->outputHTML('manga/details', [ + 'title' => $this->formatTitle( + $this->config->get('whose_list') . "'s Manga List", + 'Manga', + $data['title'] + ), + 'characters' => $characters, + 'data' => $data, + 'staff' => $staff, + ]); + } } // End of MangaController.php diff --git a/src/AnimeClient/Model/Anime.php b/src/AnimeClient/Model/Anime.php index fbae9f3f..3458b6b3 100644 --- a/src/AnimeClient/Model/Anime.php +++ b/src/AnimeClient/Model/Anime.php @@ -83,6 +83,16 @@ class Anime extends API { return $this->kitsuModel->getAnime($slug); } + /** + * Get information about a random anime + * + * @return AnimeType + */ + public function getRandomAnime(): AnimeType + { + return $this->kitsuModel->getRandomAnime(); + } + /** * Get anime by its kitsu id * diff --git a/src/AnimeClient/Model/Manga.php b/src/AnimeClient/Model/Manga.php index 1784305b..3ef516ad 100644 --- a/src/AnimeClient/Model/Manga.php +++ b/src/AnimeClient/Model/Manga.php @@ -68,6 +68,16 @@ class Manga extends API { return $this->kitsuModel->getManga($manga_id); } + /** + * Get the details of a random manga + * + * @return MangaPage + */ + public function getRandomManga(): MangaPage + { + return $this->kitsuModel->getRandomManga(); + } + /** * Get anime by its kitsu id * -- 2.43.2 From 0029dd2fb8138f68bf43b8624f4b03ce5c037e77 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 2 Dec 2020 12:43:04 -0500 Subject: [PATCH 02/14] Update Kitsu GraphQL schema file --- src/AnimeClient/API/Kitsu/schema.graphql | 76 ++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/src/AnimeClient/API/Kitsu/schema.graphql b/src/AnimeClient/API/Kitsu/schema.graphql index d15394cc..a86dacf5 100644 --- a/src/AnimeClient/API/Kitsu/schema.graphql +++ b/src/AnimeClient/API/Kitsu/schema.graphql @@ -241,6 +241,8 @@ type Account implements WithTimestamps { ratingSystem: RatingSystemEnum! "Whether Not Safe For Work content is accessible" sfwFilter: Boolean + "The site-wide permissions this user has access to" + sitePermissions: [SitePermissionEnum!]! "Time zone of the account" timeZone: String "Preferred language for media titles" @@ -921,6 +923,8 @@ type Library { last: Int, mediaType: MediaTypeEnum! ): LibraryEntryConnection! + "Random anime or manga from this library" + randomMedia(mediaType: MediaTypeEnum!, status: [LibraryEntryStatusEnum!]!): Media } "Information about a specific media entry for a user" @@ -1143,6 +1147,13 @@ type LibraryEventEdge { node: LibraryEvent } +"Autogenerated return type of LockPost" +type LockPostPayload { + "Graphql Errors" + errors: [Generic!] + post: Post +} + type Manga implements Media & WithTimestamps { "The recommended minimum age group for this media" ageRating: AgeRatingEnum @@ -1581,6 +1592,7 @@ type Mutation { episode: EpisodeMutation libraryEntry: LibraryEntryMutation mapping: MappingMutation + post: PostMutation pro: ProMutation! } @@ -1684,6 +1696,12 @@ type Post implements WithTimestamps { "Returns the last _n_ elements from the list." last: Int ): ProfileConnection! + "When this post was locked." + lockedAt: ISO8601DateTime + "The user who locked this post." + lockedBy: Profile + "The reason why this post was locked." + lockedReason: LockedReasonEnum "The media tagged in this post." media: Media updatedAt: ISO8601DateTime! @@ -1709,6 +1727,19 @@ type PostEdge { node: Post } +type PostMutation { + "Lock a Post." + lock( + "Lock a Post." + input: LockInput! + ): LockPostPayload + "Unlock a Post." + unlock( + "Unlock a Post." + input: UnlockInput! + ): UnlockPostPayload +} + type ProMutation { "Set the user's discord tag" setDiscord( @@ -2055,6 +2086,8 @@ type Query { "Returns the last _n_ elements from the list." last: Int ): ProfileConnection! + "Random anime or manga" + randomMedia(ageRatings: [AgeRatingEnum!]!, mediaType: MediaTypeEnum!): Media! "Search for Anime by title using Algolia. The most relevant results will be at the top." searchAnimeByTitle( "Returns the elements in the list that come after the specified cursor." @@ -2091,6 +2124,18 @@ type Query { last: Int, title: String! ): MediaConnection! + "Search for User by username using Algolia. The most relevant results will be at the top." + searchProfileByUsername( + "Returns the elements in the list that come after the specified cursor." + after: String, + "Returns the elements in the list that come before the specified cursor." + before: String, + "Returns the first _n_ elements from the list." + first: Int, + "Returns the last _n_ elements from the list." + last: Int, + username: String! + ): ProfileConnection "Get your current session info" session: Session! } @@ -2302,6 +2347,13 @@ type TitlesList { localized(locales: [String!]): Map! } +"Autogenerated return type of UnlockPost" +type UnlockPostPayload { + "Graphql Errors" + errors: [Generic!] + post: Post +} + "Autogenerated return type of Unsubscribe" type UnsubscribePayload { "Graphql Errors" @@ -2436,6 +2488,12 @@ enum LibraryEventKindEnum { UPDATED } +enum LockedReasonEnum { + CLOSED + SPAM + TOO_HEATED +} + enum MangaSubtypeEnum { "Self published work." DOUJIN @@ -2542,6 +2600,15 @@ enum ReleaseStatusEnum { UPCOMING } +enum SitePermissionEnum { + "Administrator/staff member of Kitsu" + ADMIN + "Moderator of community behavior" + COMMUNITY_MOD + "Maintainer of the Kitsu media database" + DATABASE_MOD +} + enum TitleLanguagePreferenceEnum { "Prefer the most commonly-used title for media" CANONICAL @@ -2672,6 +2739,11 @@ input LibraryEntryUpdateStatusByMediaInput { status: LibraryEntryStatusEnum! } +input LockInput { + id: ID! + lockedReason: LockedReasonEnum! +} + input MappingCreateInput { externalId: ID! externalSite: MappingExternalSiteEnum! @@ -2693,6 +2765,10 @@ input TitlesListInput { localized: Map } +input UnlockInput { + id: ID! +} + "A date, expressed as an ISO8601 string" scalar Date -- 2.43.2 From 292d9bbaafcd41fd6ea29ff51774672765814693 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Thu, 10 Dec 2020 15:59:37 -0500 Subject: [PATCH 03/14] Refactor, increase test coverage --- RoboFile.php | 4 +- app/appConf/routes.php | 18 ++--- src/AnimeClient/API/Anilist/Model.php | 2 +- .../API/Anilist/RequestBuilder.php | 2 +- .../API/Anilist/RequestBuilderTrait.php | 3 +- .../API/Anilist/Types/MediaListEntry.php | 18 ----- src/AnimeClient/API/Kitsu/Model.php | 10 +-- src/AnimeClient/{API => }/Anilist.php | 2 +- src/AnimeClient/AnimeClient.php | 4 +- src/AnimeClient/Command/SyncLists.php | 69 ++++++++++--------- src/AnimeClient/Command/UpdateThumbnails.php | 4 +- src/AnimeClient/Component/VerticalTabs.php | 1 + src/AnimeClient/Controller.php | 8 --- src/AnimeClient/Controller/Anime.php | 24 +++---- .../Controller/AnimeCollection.php | 2 +- src/AnimeClient/Controller/Manga.php | 16 +---- src/AnimeClient/{ => Enum}/API.php | 6 +- .../Enum/{ListType.php => MediaType.php} | 4 +- src/AnimeClient/Helper/Picture.php | 3 +- src/AnimeClient/Kitsu.php | 10 +-- src/AnimeClient/Model/AnimeCollection.php | 1 + src/AnimeClient/Model/DB.php | 2 +- src/AnimeClient/Types/Anime.php | 52 -------------- src/AnimeClient/Types/AnimeListItem.php | 31 +-------- src/AnimeClient/Types/AnimePage.php | 9 --- src/AnimeClient/Types/Character.php | 21 ------ src/AnimeClient/Types/Characters.php | 6 -- src/AnimeClient/Types/Config.php | 53 +------------- src/AnimeClient/Types/Config/Anilist.php | 35 ++-------- src/AnimeClient/Types/Config/Cache.php | 13 ++-- src/AnimeClient/Types/Config/Database.php | 24 +++---- src/AnimeClient/Types/FormItem.php | 8 +-- src/AnimeClient/Types/FormItemData.php | 11 --- src/AnimeClient/Types/HistoryItem.php | 18 ++--- src/AnimeClient/Types/Media.php | 6 -- src/AnimeClient/Types/User.php | 27 -------- src/Ion/Event.php | 2 +- src/Ion/Friend.php | 2 +- src/Ion/View/HttpView.php | 1 + tests/AnimeClient/UtilTest.php | 6 ++ tests/Ion/EventTest.php | 29 ++++++++ tests/Ion/View/HtmlViewTest.php | 2 +- tests/Ion/View/HttpViewTest.php | 28 ++++++-- tests/Ion/View/JsonViewTest.php | 6 +- 44 files changed, 194 insertions(+), 409 deletions(-) rename src/AnimeClient/{API => }/Anilist.php (98%) rename src/AnimeClient/{ => Enum}/API.php (86%) rename src/AnimeClient/Enum/{ListType.php => MediaType.php} (91%) create mode 100644 tests/Ion/EventTest.php diff --git a/RoboFile.php b/RoboFile.php index 59003dfb..26749f7e 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -30,7 +30,7 @@ class RoboFile extends Tasks { * * @var array */ - protected $taskDirs = [ + protected array $taskDirs = [ 'build/logs', 'build/pdepend', 'build/phpdox', @@ -41,7 +41,7 @@ class RoboFile extends Tasks { * * @var array */ - protected $cleanDirs = [ + protected array $cleanDirs = [ 'coverage', 'docs', 'phpdoc', diff --git a/app/appConf/routes.php b/app/appConf/routes.php index 0af207ef..e5d5de3a 100644 --- a/app/appConf/routes.php +++ b/app/appConf/routes.php @@ -255,6 +255,13 @@ $routes = [ 'path' => '/logout', 'action' => 'logout', ], + 'history' => [ + 'controller' => 'history', + 'path' => '/history/{type}', + 'tokens' => [ + 'type' => SLUG_PATTERN + ] + ], 'increment' => [ 'path' => '/{controller}/increment', 'action' => 'increment', @@ -288,19 +295,12 @@ $routes = [ ], ], 'list' => [ - 'path' => '/{controller}/{type}{/view}', + 'path' => '/{controller}/{status}{/view}', 'tokens' => [ - 'type' => ALPHA_SLUG_PATTERN, + 'status' => ALPHA_SLUG_PATTERN, 'view' => ALPHA_SLUG_PATTERN, ], ], - 'history' => [ - 'controller' => 'history', - 'path' => '/history/{type}', - 'tokens' => [ - 'type' => SLUG_PATTERN - ] - ], 'index_redirect' => [ 'path' => '/', 'action' => 'redirectToDefaultRoute', diff --git a/src/AnimeClient/API/Anilist/Model.php b/src/AnimeClient/API/Anilist/Model.php index eb741a1f..9d7bbcb8 100644 --- a/src/AnimeClient/API/Anilist/Model.php +++ b/src/AnimeClient/API/Anilist/Model.php @@ -21,7 +21,7 @@ use function Amp\Promise\wait; use InvalidArgumentException; use Amp\Http\Client\Request; -use Aviat\AnimeClient\API\Anilist; +use Aviat\AnimeClient\Anilist; use Aviat\AnimeClient\API\Mapping\{AnimeWatchingStatus, MangaReadingStatus}; use Aviat\AnimeClient\Types\FormItem; use Aviat\Ion\Json; diff --git a/src/AnimeClient/API/Anilist/RequestBuilder.php b/src/AnimeClient/API/Anilist/RequestBuilder.php index d2460b14..f1794b42 100644 --- a/src/AnimeClient/API/Anilist/RequestBuilder.php +++ b/src/AnimeClient/API/Anilist/RequestBuilder.php @@ -18,7 +18,7 @@ namespace Aviat\AnimeClient\API\Anilist; use Amp\Http\Client\Request; use Amp\Http\Client\Response; -use Aviat\AnimeClient\API\Anilist; +use Aviat\AnimeClient\Anilist; use Aviat\Ion\Di\ContainerAware; use Aviat\Ion\Di\ContainerInterface; use Aviat\Ion\Json; diff --git a/src/AnimeClient/API/Anilist/RequestBuilderTrait.php b/src/AnimeClient/API/Anilist/RequestBuilderTrait.php index 5c696597..05e30ae2 100644 --- a/src/AnimeClient/API/Anilist/RequestBuilderTrait.php +++ b/src/AnimeClient/API/Anilist/RequestBuilderTrait.php @@ -23,7 +23,6 @@ trait RequestBuilderTrait { /** * The request builder for the Anilist API - * @var RequestBuilder */ protected RequestBuilder $requestBuilder; @@ -33,7 +32,7 @@ trait RequestBuilderTrait { * @param RequestBuilder $requestBuilder * @return self */ - public function setRequestBuilder($requestBuilder): self + public function setRequestBuilder(RequestBuilder $requestBuilder): self { $this->requestBuilder = $requestBuilder; return $this; diff --git a/src/AnimeClient/API/Anilist/Types/MediaListEntry.php b/src/AnimeClient/API/Anilist/Types/MediaListEntry.php index bec473aa..61d547ed 100644 --- a/src/AnimeClient/API/Anilist/Types/MediaListEntry.php +++ b/src/AnimeClient/API/Anilist/Types/MediaListEntry.php @@ -24,33 +24,15 @@ class MediaListEntry extends AbstractType { */ public $id; - /** - * @var string|null - */ public ?string $notes; - /** - * @var bool - */ public ?bool $private; - /** - * @var int - */ public int $progress; - /** - * @var int - */ public ?int $repeat; - /** - * @var string - */ public string $status; - /** - * @var int - */ public ?int $score; } \ No newline at end of file diff --git a/src/AnimeClient/API/Kitsu/Model.php b/src/AnimeClient/API/Kitsu/Model.php index a3505567..1114f3a5 100644 --- a/src/AnimeClient/API/Kitsu/Model.php +++ b/src/AnimeClient/API/Kitsu/Model.php @@ -33,7 +33,7 @@ use Aviat\AnimeClient\API\Kitsu\Transformer\{ MangaListTransformer, MangaTransformer }; -use Aviat\AnimeClient\Enum\ListType; +use Aviat\AnimeClient\Enum\MediaType; use Aviat\AnimeClient\Kitsu as K; use Aviat\AnimeClient\Types\Anime; use Aviat\AnimeClient\Types\MangaPage; @@ -319,7 +319,7 @@ final class Model { if ($list === NULL) { - $data = $this->getList(ListType::ANIME, $status) ?? []; + $data = $this->getList(MediaType::ANIME, $status) ?? []; // Bail out on no data if (empty($data)) @@ -352,7 +352,7 @@ final class Model { */ public function getAnimeListCount(string $status = '') : int { - return $this->getListCount(ListType::ANIME, $status); + return $this->getListCount(MediaType::ANIME, $status); } /** @@ -462,7 +462,7 @@ final class Model { if ($list === NULL) { - $data = $this->getList(ListType::MANGA, $status) ?? []; + $data = $this->getList(MediaType::MANGA, $status) ?? []; // Bail out on no data if (empty($data)) @@ -495,7 +495,7 @@ final class Model { */ public function getMangaListCount(string $status = '') : int { - return $this->getListCount(ListType::MANGA, $status); + return $this->getListCount(MediaType::MANGA, $status); } /** diff --git a/src/AnimeClient/API/Anilist.php b/src/AnimeClient/Anilist.php similarity index 98% rename from src/AnimeClient/API/Anilist.php rename to src/AnimeClient/Anilist.php index 0bba5c41..44277fba 100644 --- a/src/AnimeClient/API/Anilist.php +++ b/src/AnimeClient/Anilist.php @@ -14,7 +14,7 @@ * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ -namespace Aviat\AnimeClient\API; +namespace Aviat\AnimeClient; use Aviat\AnimeClient\API\Enum\{ AnimeWatchingStatus\Kitsu as KAWS, diff --git a/src/AnimeClient/AnimeClient.php b/src/AnimeClient/AnimeClient.php index 3aa76ffe..754a1135 100644 --- a/src/AnimeClient/AnimeClient.php +++ b/src/AnimeClient/AnimeClient.php @@ -250,7 +250,7 @@ function getResponse ($request): Response * @param bool $webp * @return string */ -function getLocalImg ($kitsuUrl, $webp = TRUE): string +function getLocalImg (string $kitsuUrl, $webp = TRUE): string { if (empty($kitsuUrl) || ( ! is_string($kitsuUrl))) { @@ -360,7 +360,7 @@ function clearCache(CacheInterface $cache): bool Kitsu::AUTH_TOKEN_REFRESH_CACHE_KEY, ], NULL); - $userData = array_filter((array)$userData, fn ($value) => $value !== NULL); + $userData = array_filter((array)$userData, static fn ($value) => $value !== NULL); $cleared = $cache->clear(); $saved = ( ! empty($userData)) diff --git a/src/AnimeClient/Command/SyncLists.php b/src/AnimeClient/Command/SyncLists.php index aa3c0cb0..08bf346c 100644 --- a/src/AnimeClient/Command/SyncLists.php +++ b/src/AnimeClient/Command/SyncLists.php @@ -25,7 +25,8 @@ use Aviat\AnimeClient\API\{ use Aviat\AnimeClient\API; use Aviat\AnimeClient\API\Anilist; use Aviat\AnimeClient\API\Mapping\{AnimeWatchingStatus, MangaReadingStatus}; -use Aviat\AnimeClient\Enum\{ListType, SyncAction}; +use Aviat\AnimeClient\Enum; +use Aviat\AnimeClient\Enum\{MediaType, SyncAction}; use Aviat\AnimeClient\Types\FormItem; use Aviat\Ion\Di\Exception\ContainerException; use Aviat\Ion\Di\Exception\NotFoundException; @@ -73,7 +74,7 @@ final class SyncLists extends BaseCommand { { $this->init(); - foreach ([ListType::ANIME, ListType::MANGA] as $type) + foreach ([MediaType::ANIME, MediaType::MANGA] as $type) { // Main Sync flow $this->fetchCount($type); @@ -100,7 +101,7 @@ final class SyncLists extends BaseCommand { $this->setCache($this->container->get('cache')); $config = $this->container->get('config'); - $anilistEnabled = $config->get([API::ANILIST, 'enabled']); + $anilistEnabled = $config->get([Enum\API::ANILIST, 'enabled']); // We can't sync kitsu against itself! if ( ! $anilistEnabled) @@ -165,8 +166,8 @@ final class SyncLists extends BaseCommand { $this->clearLine(); return [ - API::ANILIST => $anilist, - API::KITSU => $kitsu, + Enum\API::ANILIST => $anilist, + Enum\API::KITSU => $kitsu, ]; } @@ -182,17 +183,17 @@ final class SyncLists extends BaseCommand { $this->echo('Normalizing List Data'); $progress = new Widgets\ProgressBar($this->getConsole(), 2, 50, FALSE); - $kitsu = $this->transformKitsu($type, $data[API::KITSU]); + $kitsu = $this->transformKitsu($type, $data[Enum\API::KITSU]); $progress->incr(); - $anilist = $this->transformAnilist($type, $data[API::ANILIST]); + $anilist = $this->transformAnilist($type, $data[Enum\API::ANILIST]); $progress->incr(); $this->clearLine(); return [ - API::ANILIST => $anilist, - API::KITSU => $kitsu, + Enum\API::ANILIST => $anilist, + Enum\API::KITSU => $kitsu, ]; } @@ -207,7 +208,7 @@ final class SyncLists extends BaseCommand { { $this->echo('Comparing List Items'); - return $this->compareLists($type, $data[API::ANILIST], $data[API::KITSU]); + return $this->compareLists($type, $data[Enum\API::ANILIST], $data[Enum\API::KITSU]); } /** @@ -280,8 +281,8 @@ final class SyncLists extends BaseCommand { private function fetchAnilist(string $type): array { static $list = [ - ListType::ANIME => NULL, - ListType::MANGA => NULL, + MediaType::ANIME => NULL, + MediaType::MANGA => NULL, ]; // This uses a static so I don't have to fetch this list twice for a count @@ -435,12 +436,12 @@ final class SyncLists extends BaseCommand { continue; } - if (in_array(API::KITSU, $item['updateType'], TRUE)) + if (in_array(Enum\API::KITSU, $item['updateType'], TRUE)) { $kitsuUpdateItems[] = $item['data']; } - if (in_array(API::ANILIST, $item['updateType'], TRUE)) + if (in_array(Enum\API::ANILIST, $item['updateType'], TRUE)) { $anilistUpdateItems[] = $item['data']; } @@ -448,7 +449,7 @@ final class SyncLists extends BaseCommand { continue; } - $statusMap = ($type === ListType::ANIME) ? AnimeWatchingStatus::class : MangaReadingStatus::class; + $statusMap = ($type === MediaType::ANIME) ? AnimeWatchingStatus::class : MangaReadingStatus::class; // Looks like this item only exists on Kitsu $kItem = $kitsuItem['data']; @@ -528,7 +529,7 @@ final class SyncLists extends BaseCommand { if ($kitsuItem['data']['status'] === 'completed' && $kitsuItem['data']['reconsuming'] === TRUE) { $update['data']['reconsuming'] = FALSE; - $return['updateType'][] = API::KITSU; + $return['updateType'][] = Enum\API::KITSU; } // If status is the same, and progress count is different, use greater progress @@ -537,12 +538,12 @@ final class SyncLists extends BaseCommand { if ($diff['progress'] === self::KITSU_GREATER) { $update['data']['progress'] = $kitsuItem['data']['progress']; - $return['updateType'][] = API::ANILIST; + $return['updateType'][] = Enum\API::ANILIST; } else if($diff['progress'] === self::ANILIST_GREATER) { $update['data']['progress'] = $anilistItem['data']['progress']; - $return['updateType'][] = API::KITSU; + $return['updateType'][] = Enum\API::KITSU; } } @@ -552,12 +553,12 @@ final class SyncLists extends BaseCommand { if ($dateDiff === self::KITSU_GREATER) { $update['data']['status'] = $kitsuItem['data']['status']; - $return['updateType'][] = API::ANILIST; + $return['updateType'][] = Enum\API::ANILIST; } else if ($dateDiff === self::ANILIST_GREATER) { $update['data']['status'] = $anilistItem['data']['status']; - $return['updateType'][] = API::KITSU; + $return['updateType'][] = Enum\API::KITSU; } } @@ -574,7 +575,7 @@ final class SyncLists extends BaseCommand { $update['data']['progress'] = $kitsuItem['data']['progress']; } - $return['updateType'][] = API::ANILIST; + $return['updateType'][] = Enum\API::ANILIST; } else if($dateDiff === self::ANILIST_GREATER) { @@ -585,7 +586,7 @@ final class SyncLists extends BaseCommand { $update['data']['progress'] = $kitsuItem['data']['progress']; } - $return['updateType'][] = API::KITSU; + $return['updateType'][] = Enum\API::KITSU; } } @@ -599,12 +600,12 @@ final class SyncLists extends BaseCommand { ) { $update['data']['ratingTwenty'] = $kitsuItem['data']['ratingTwenty']; - $return['updateType'][] = API::ANILIST; + $return['updateType'][] = Enum\API::ANILIST; } else if($dateDiff === self::ANILIST_GREATER && $anilistItem['data']['rating'] !== 0) { $update['data']['ratingTwenty'] = $anilistItem['data']['rating'] * 2; - $return['updateType'][] = API::KITSU; + $return['updateType'][] = Enum\API::KITSU; } } @@ -614,12 +615,12 @@ final class SyncLists extends BaseCommand { if ( ! empty($kitsuItem['data']['notes'])) { $update['data']['notes'] = $kitsuItem['data']['notes']; - $return['updateType'][] = API::ANILIST; + $return['updateType'][] = Enum\API::ANILIST; } else { $update['data']['notes'] = $anilistItem['data']['notes']; - $return['updateType'][] = API::KITSU; + $return['updateType'][] = Enum\API::KITSU; } } @@ -629,12 +630,12 @@ final class SyncLists extends BaseCommand { if ($diff['reconsumeCount'] === self::KITSU_GREATER) { $update['data']['reconsumeCount'] = $kitsuItem['data']['reconsumeCount']; - $return['updateType'][] = API::ANILIST; + $return['updateType'][] = Enum\API::ANILIST; } else if ($diff['reconsumeCount'] === self::ANILIST_GREATER) { $update['data']['reconsumeCount'] = $anilistItem['data']['reconsumeCount']; - $return['updateType'][] = API::KITSU; + $return['updateType'][] = Enum\API::KITSU; } } @@ -645,8 +646,8 @@ final class SyncLists extends BaseCommand { } $return['meta'] = [ - API::KITSU => $kitsuItem['data'], - API::ANILIST => $anilistItem['data'], + Enum\API::KITSU => $kitsuItem['data'], + Enum\API::ANILIST => $anilistItem['data'], 'dateDiff' => $dateDiff, 'diff' => $diff, ]; @@ -656,7 +657,7 @@ final class SyncLists extends BaseCommand { // Fill in missing data values for update // so I don't have to create a really complex graphql query // to handle each combination of fields - if ($return['updateType'][0] === API::ANILIST) + if ($return['updateType'][0] === Enum\API::ANILIST) { // Anilist GraphQL expects a rating from 1-100 $prevData = [ @@ -673,7 +674,7 @@ final class SyncLists extends BaseCommand { $return['data']['data'] = array_merge($prevData, $return['data']['data']); } - else if ($return['updateType'][0] === API::KITSU) + else if ($return['updateType'][0] === Enum\API::KITSU) { $prevData = [ 'notes' => $anilistItem['data']['notes'], @@ -707,7 +708,7 @@ final class SyncLists extends BaseCommand { * @param string $type * @throws Throwable */ - private function updateKitsuListItems(array $itemsToUpdate, string $action = SyncAction::UPDATE, string $type = ListType::ANIME): void + private function updateKitsuListItems(array $itemsToUpdate, string $action = SyncAction::UPDATE, string $type = MediaType::ANIME): void { $requester = new ParallelAPIRequest(); foreach($itemsToUpdate as $item) @@ -776,7 +777,7 @@ final class SyncLists extends BaseCommand { * @param string $type * @throws Throwable */ - private function updateAnilistListItems(array $itemsToUpdate, string $action = SyncAction::UPDATE, string $type = ListType::ANIME): void + private function updateAnilistListItems(array $itemsToUpdate, string $action = SyncAction::UPDATE, string $type = MediaType::ANIME): void { $requester = new ParallelAPIRequest(); diff --git a/src/AnimeClient/Command/UpdateThumbnails.php b/src/AnimeClient/Command/UpdateThumbnails.php index e7d39be6..70a56953 100644 --- a/src/AnimeClient/Command/UpdateThumbnails.php +++ b/src/AnimeClient/Command/UpdateThumbnails.php @@ -69,11 +69,11 @@ final class UpdateThumbnails extends ClearThumbnails { public function getImageList(): array { $animeIds = array_map( - fn ($item) => $item['media']['id'], + static fn ($item) => $item['media']['id'], $this->kitsuModel->getThumbList('ANIME') ); $mangaIds = array_map( - fn ($item) => $item['media']['id'], + static fn ($item) => $item['media']['id'], $this->kitsuModel->getThumbList('MANGA') ); diff --git a/src/AnimeClient/Component/VerticalTabs.php b/src/AnimeClient/Component/VerticalTabs.php index de05abf8..07b6ecf9 100644 --- a/src/AnimeClient/Component/VerticalTabs.php +++ b/src/AnimeClient/Component/VerticalTabs.php @@ -26,6 +26,7 @@ final class VerticalTabs { * also used to generate id attributes * @param array $tabData The data used to create the tab content, indexed by the tab label * @param callable $cb The function to generate the tab content + * @param string $className * @return string */ public function __invoke( diff --git a/src/AnimeClient/Controller.php b/src/AnimeClient/Controller.php index 8bb2e7f9..15644f78 100644 --- a/src/AnimeClient/Controller.php +++ b/src/AnimeClient/Controller.php @@ -46,49 +46,41 @@ class Controller { /** * The authentication object - * @var Auth $auth ; */ protected Auth $auth; /** * Cache manager - * @var CacheInterface */ protected CacheInterface $cache; /** * The global configuration object - * @var ConfigInterface $config */ public ConfigInterface $config; /** * Request object - * @var ServerRequestInterface $request */ protected ServerRequestInterface $request; /** * Url generation class - * @var UrlGenerator */ protected UrlGenerator $urlGenerator; /** * Aura url generator - * @var Generator */ protected Generator $url; /** * Session segment - * @var Segment */ protected Segment $session; /** * Common data to be sent to views - * @var array */ protected array $baseData = []; diff --git a/src/AnimeClient/Controller/Anime.php b/src/AnimeClient/Controller/Anime.php index 5b8acee6..d9aa20d5 100644 --- a/src/AnimeClient/Controller/Anime.php +++ b/src/AnimeClient/Controller/Anime.php @@ -66,17 +66,17 @@ final class Anime extends BaseController { /** * Show a portion, or all of the anime list * - * @param string|int $type - The section of the list - * @param string $view - List or cover view + * @param string|int $status - The section of the list + * @param string|null $view - List or cover view * @throws ContainerException * @throws NotFoundException * @throws InvalidArgumentException * @throws Throwable * @return void */ - public function index($type = KitsuWatchingStatus::WATCHING, string $view = NULL): void + public function index($status = KitsuWatchingStatus::WATCHING, ?string $view = NULL): void { - if ( ! in_array($type, [ + if ( ! in_array($status, [ 'all', 'watching', 'plan_to_watch', @@ -88,10 +88,10 @@ final class Anime extends BaseController { $this->errorPage(404, 'Not Found', 'Page not found'); } - $title = array_key_exists($type, AnimeWatchingStatus::ROUTE_TO_TITLE) + $title = array_key_exists($status, AnimeWatchingStatus::ROUTE_TO_TITLE) ? $this->formatTitle( $this->config->get('whose_list') . "'s Anime List", - AnimeWatchingStatus::ROUTE_TO_TITLE[$type] + AnimeWatchingStatus::ROUTE_TO_TITLE[$status] ) : ''; @@ -100,8 +100,8 @@ final class Anime extends BaseController { 'list' => 'list' ]; - $data = ($type !== 'all') - ? $this->model->getList(AnimeWatchingStatus::ROUTE_TO_KITSU[$type]) + $data = ($status !== 'all') + ? $this->model->getList(AnimeWatchingStatus::ROUTE_TO_KITSU[$status]) : $this->model->getAllLists(); $this->outputHTML('anime/' . $viewMap[$view], [ @@ -305,17 +305,17 @@ final class Anime extends BaseController { /** * View details of an anime * - * @param string $animeId + * @param string $id * @throws ContainerException * @throws NotFoundException * @throws InvalidArgumentException * @return void */ - public function details(string $animeId): void + public function details(string $id): void { try { - $data = $this->model->getAnime($animeId); + $data = $this->model->getAnime($id); if ($data->isEmpty()) { @@ -349,7 +349,7 @@ final class Anime extends BaseController { } } - public function random() + public function random(): void { try { diff --git a/src/AnimeClient/Controller/AnimeCollection.php b/src/AnimeClient/Controller/AnimeCollection.php index 10aaf9d6..351b3ccd 100644 --- a/src/AnimeClient/Controller/AnimeCollection.php +++ b/src/AnimeClient/Controller/AnimeCollection.php @@ -94,7 +94,7 @@ final class AnimeCollection extends BaseController { * @throws InvalidArgumentException * @return void */ - public function view($view): void + public function view(string $view = ''): void { $viewMap = [ '' => 'cover', diff --git a/src/AnimeClient/Controller/Manga.php b/src/AnimeClient/Controller/Manga.php index 3fe27ce2..7e5acaca 100644 --- a/src/AnimeClient/Controller/Manga.php +++ b/src/AnimeClient/Controller/Manga.php @@ -303,19 +303,16 @@ final class Manga extends Controller { /** * View details of an manga * - * @param string $manga_id + * @param string $id * @throws ContainerException * @throws NotFoundException * @throws InvalidArgumentException * @throws Throwable * @return void */ - public function details($manga_id): void + public function details(string $id): void { - $data = $this->model->getManga($manga_id); - $staff = []; - $characters = []; - + $data = $this->model->getManga($id); if ($data->isEmpty()) { $this->notFound( @@ -333,9 +330,7 @@ final class Manga extends Controller { 'Manga', $data['title'] ), - 'characters' => $characters, 'data' => $data, - 'staff' => $staff, ]); } @@ -351,9 +346,6 @@ final class Manga extends Controller { public function random(): void { $data = $this->model->getRandomManga(); - $staff = []; - $characters = []; - if ($data->isEmpty()) { $this->notFound( @@ -371,9 +363,7 @@ final class Manga extends Controller { 'Manga', $data['title'] ), - 'characters' => $characters, 'data' => $data, - 'staff' => $staff, ]); } } diff --git a/src/AnimeClient/API.php b/src/AnimeClient/Enum/API.php similarity index 86% rename from src/AnimeClient/API.php rename to src/AnimeClient/Enum/API.php index 3d8df733..4c4163fc 100644 --- a/src/AnimeClient/API.php +++ b/src/AnimeClient/Enum/API.php @@ -14,9 +14,11 @@ * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ -namespace Aviat\AnimeClient; +namespace Aviat\AnimeClient\Enum; -class API { +use Aviat\Ion\Enum; + +final class API extends Enum { public const ANILIST = 'anilist'; public const KITSU = 'kitsu'; } \ No newline at end of file diff --git a/src/AnimeClient/Enum/ListType.php b/src/AnimeClient/Enum/MediaType.php similarity index 91% rename from src/AnimeClient/Enum/ListType.php rename to src/AnimeClient/Enum/MediaType.php index c011a1f7..9c668b98 100644 --- a/src/AnimeClient/Enum/ListType.php +++ b/src/AnimeClient/Enum/MediaType.php @@ -19,9 +19,9 @@ namespace Aviat\AnimeClient\Enum; use Aviat\Ion\Enum as BaseEnum; /** - * Types of lists + * Types of media */ -final class ListType extends BaseEnum { +final class MediaType extends BaseEnum { public const ANIME = 'anime'; public const DRAMA = 'drama'; public const MANGA = 'manga'; diff --git a/src/AnimeClient/Helper/Picture.php b/src/AnimeClient/Helper/Picture.php index f8b476b9..031ef77d 100644 --- a/src/AnimeClient/Helper/Picture.php +++ b/src/AnimeClient/Helper/Picture.php @@ -49,7 +49,8 @@ final class Picture { ]; /** - * Create the html for an html picture element + * Create the html for an html picture element. + * Uses .webp images with fallback * * @param string $uri * @param string $fallbackExt diff --git a/src/AnimeClient/Kitsu.php b/src/AnimeClient/Kitsu.php index 98dcbba0..eec30eea 100644 --- a/src/AnimeClient/Kitsu.php +++ b/src/AnimeClient/Kitsu.php @@ -187,14 +187,14 @@ final class Kitsu { $host = parse_url($url, \PHP_URL_HOST); $links[] = [ - 'meta' => static::getServiceMetaData($host), + 'meta' => self::getServiceMetaData($host), 'link' => $streamingLink['url'], 'subs' => $streamingLink['subs'], 'dubs' => $streamingLink['dubs'] ]; } - usort($links, fn ($a, $b) => $a['meta']['name'] <=> $b['meta']['name']); + usort($links, static fn ($a, $b) => $a['meta']['name'] <=> $b['meta']['name']); return $links; } @@ -282,7 +282,7 @@ final class Kitsu { */ protected static function getServiceMetaData(string $hostname = NULL): array { - $hostname = str_replace('www.', '', $hostname); + $hostname = str_replace('www.', '', $hostname ?? ''); $serviceMap = [ 'animelab.com' => [ @@ -412,11 +412,11 @@ final class Kitsu { /** * Determine if an alternate title is unique enough to list * - * @param string $title + * @param string|null $title * @param array $existingTitles * @return bool */ - private static function titleIsUnique(string $title = NULL, array $existingTitles = []): bool + private static function titleIsUnique(?string $title = NULL, array $existingTitles = []): bool { if (empty($title)) { diff --git a/src/AnimeClient/Model/AnimeCollection.php b/src/AnimeClient/Model/AnimeCollection.php index aa39feb6..1bfab454 100644 --- a/src/AnimeClient/Model/AnimeCollection.php +++ b/src/AnimeClient/Model/AnimeCollection.php @@ -134,6 +134,7 @@ final class AnimeCollection extends Collection { } // Organize the media types into groups + // @TODO: make this more database-driven, rather than hardcoded return [ 'Common' => [ 2 => $flatList[2], // Blu-ray diff --git a/src/AnimeClient/Model/DB.php b/src/AnimeClient/Model/DB.php index c768ba72..7b99aafb 100644 --- a/src/AnimeClient/Model/DB.php +++ b/src/AnimeClient/Model/DB.php @@ -28,7 +28,7 @@ abstract class DB { * The database connection information array * @var array $dbConfig */ - protected $dbConfig = []; + protected array $dbConfig = []; /** * Constructor diff --git a/src/AnimeClient/Types/Anime.php b/src/AnimeClient/Types/Anime.php index 1bd77a70..29846f54 100644 --- a/src/AnimeClient/Types/Anime.php +++ b/src/AnimeClient/Types/Anime.php @@ -22,34 +22,16 @@ use Aviat\AnimeClient\API\Kitsu\Enum\AnimeAiringStatus; * Type representing an anime within a watch list */ class Anime extends AbstractType { - /** - * @var string - */ public ?string $age_rating; - /** - * @var string - */ public ?string $age_rating_guide; - /** - * @var string - */ public ?string $cover_image; - /** - * @var string|int - */ public ?int $episode_count; - /** - * @var string|int - */ public ?int $episode_length; - /** - * @var array - */ public array $genres = []; /** @@ -57,67 +39,33 @@ class Anime extends AbstractType { */ public $id = ''; - /** - * @var array - */ public array $included = []; - /** - * @var string - */ public ?string $show_type; - /** - * @var string - */ public ?string $slug; - /** - * @var AnimeAiringStatus - */ public string $status = AnimeAiringStatus::FINISHED_AIRING; - /** - * @var array - */ public ?array $streaming_links = []; - /** - * @var string - */ public ?string $synopsis; - /** - * @var string - */ public ?string $title; - /** - * @var array - */ public array $titles = []; - /** - * @var array - */ public array $titles_more = []; - /** - * @var string - */ public ?string $trailer_id; /** * Length of the entire series in seconds - * - * @var int|null */ public ?int $total_length; /** * Kitsu detail page url - * - * @var string */ public ?string $url; } \ No newline at end of file diff --git a/src/AnimeClient/Types/AnimeListItem.php b/src/AnimeClient/Types/AnimeListItem.php index 1cdb746b..c10ffd63 100644 --- a/src/AnimeClient/Types/AnimeListItem.php +++ b/src/AnimeClient/Types/AnimeListItem.php @@ -20,14 +20,8 @@ namespace Aviat\AnimeClient\Types; * Type representing an anime watch list item */ final class AnimeListItem extends AbstractType { - /** - * @var string - */ public ?string $id; - /** - * @var string - */ public ?string $mal_id; /** @@ -35,47 +29,26 @@ final class AnimeListItem extends AbstractType { */ public $anilist_item_id; - /** - * @var array - */ public array $episodes = [ 'length' => 0, 'total' => 0, 'watched' => '', ]; - /** - * @var array - */ public array $airing = [ 'status' => '', 'started' => '', 'ended' => '', ]; - /** - * @var Anime - */ public ?Anime $anime; - /** - * @var string - */ public ?string $notes; - /** - * @var bool - */ public bool $private = FALSE; - /** - * @var bool - */ public bool $rewatching = FALSE; - /** - * @var int - */ public int $rewatched = 0; /** @@ -85,10 +58,8 @@ final class AnimeListItem extends AbstractType { /** * One of Aviat\AnimeClient\API\Enum\AnimeWatchingStatus - * - * @var string */ - public $watching_status; + public string $watching_status; public function setAnime($anime): void { diff --git a/src/AnimeClient/Types/AnimePage.php b/src/AnimeClient/Types/AnimePage.php index 1924925d..abc78eb8 100644 --- a/src/AnimeClient/Types/AnimePage.php +++ b/src/AnimeClient/Types/AnimePage.php @@ -20,18 +20,9 @@ namespace Aviat\AnimeClient\Types; * Type representing an Anime object for a detail page */ final class AnimePage extends Anime { - /** - * @var array - */ public array $characters = []; - /** - * @var array - */ public array $links = []; - /** - * @var array - */ public array $staff = []; } \ No newline at end of file diff --git a/src/AnimeClient/Types/Character.php b/src/AnimeClient/Types/Character.php index ff512aad..d231b571 100644 --- a/src/AnimeClient/Types/Character.php +++ b/src/AnimeClient/Types/Character.php @@ -20,14 +20,8 @@ namespace Aviat\AnimeClient\Types; * Type representing a character for display */ final class Character extends AbstractType { - /** - * @var array - */ public array $castings = []; - /** - * @var string - */ public ?string $description; /** @@ -35,29 +29,14 @@ final class Character extends AbstractType { */ public $id; - /** - * @var array - */ public array $included = []; - /** - * @var Media - */ public ?Media $media; - /** - * @var string - */ public ?string $name; - /** - * @var array - */ public array $names = []; - /** - * @var array - */ public array $otherNames = []; public function setMedia ($media): void diff --git a/src/AnimeClient/Types/Characters.php b/src/AnimeClient/Types/Characters.php index 091e8542..812a7b2b 100644 --- a/src/AnimeClient/Types/Characters.php +++ b/src/AnimeClient/Types/Characters.php @@ -17,13 +17,7 @@ namespace Aviat\AnimeClient\Types; final class Characters extends AbstractType { - /** - * @var array - */ public array $main = []; - /** - * @var array - */ public array $supporting = []; } \ No newline at end of file diff --git a/src/AnimeClient/Types/Config.php b/src/AnimeClient/Types/Config.php index 672ebde8..28468257 100644 --- a/src/AnimeClient/Types/Config.php +++ b/src/AnimeClient/Types/Config.php @@ -22,28 +22,16 @@ class Config extends AbstractType { // Config files/namespaces // ------------------------------------------------------------------------ - /** - * @var Config\Anilist - */ public ?Config\Anilist $anilist; - /** - * @var Config\Cache - */ public ?Config\Cache $cache; - /** - * @var Config\Database - */ public ?Config\Database $database; // ------------------------------------------------------------------------ // Settings in config.toml // ------------------------------------------------------------------------ - /** - * @var string - */ public ?string $asset_path; // Path to public folder for urls /** @@ -60,8 +48,6 @@ class Config extends AbstractType { /** * Default Anime list status page, values are listed in * Aviat\AnimeClient\API\Enum\AnimeWatchingStatus\Title - * - * @var string */ public ?string $default_anime_list_path; @@ -75,8 +61,6 @@ class Config extends AbstractType { /** * Default Manga list status page, values are listed in * Aviat\AnimeClient\API\Enum\MangaReadingStatus\Title - * - * @var string */ public ?string $default_manga_list_path; @@ -85,25 +69,13 @@ class Config extends AbstractType { */ public ?string $default_view_type; - /** - * @var string - */ public ?string $kitsu_username; - /** - * @var bool - */ public bool $secure_urls = TRUE; - /** - * @var bool - */ - public $show_anime_collection = FALSE; + public bool $show_anime_collection = FALSE; - /** - * @var bool - */ - public $show_manga_collection = FALSE; + public bool $show_manga_collection = FALSE; /** * CSS theme: light, dark, or auto-switching @@ -112,9 +84,6 @@ class Config extends AbstractType { */ public ?string $theme; - /** - * @var string - */ public ?string $whose_list; // ------------------------------------------------------------------------ @@ -135,34 +104,16 @@ class Config extends AbstractType { // Generated config values // ------------------------------------------------------------------------ - /** - * @var string - */ public ?string $asset_dir; // Path to public folder for local files - /** - * @var string - */ public ?string $base_config_dir; - /** - * @var string - */ public ?string $config_dir; - /** - * @var string - */ public ?string $data_cache_path; - /** - * @var string - */ public ?string $img_cache_path; - /** - * @var string - */ public ?string $view_path; public function setAnilist ($data): void diff --git a/src/AnimeClient/Types/Config/Anilist.php b/src/AnimeClient/Types/Config/Anilist.php index d48d8121..0e0cb829 100644 --- a/src/AnimeClient/Types/Config/Anilist.php +++ b/src/AnimeClient/Types/Config/Anilist.php @@ -19,38 +19,17 @@ namespace Aviat\AnimeClient\Types\Config; use Aviat\AnimeClient\Types\AbstractType; class Anilist extends AbstractType { - /** - * @var bool - */ - public $enabled = FALSE; + public bool $enabled = FALSE; - /** - * @var string - */ - public $client_id; + public ?string $client_id; - /** - * @var string - */ - public $client_secret; + public ?string $client_secret; - /** - * @var string - */ - public $access_token; + public ?string $access_token; - /** - * @var string - */ - public $access_token_expires; + public ?int $access_token_expires; - /** - * @var string - */ - public $refresh_token; + public ?string $refresh_token; - /** - * @var string - */ - public $username; + public ?string $username; } \ No newline at end of file diff --git a/src/AnimeClient/Types/Config/Cache.php b/src/AnimeClient/Types/Config/Cache.php index 5c055159..b1c9d74e 100644 --- a/src/AnimeClient/Types/Config/Cache.php +++ b/src/AnimeClient/Types/Config/Cache.php @@ -22,21 +22,24 @@ class Cache extends AbstractType { /** * @var string */ - public $driver; + public string $driver = 'null'; - public $host; + public ?string $host; + /** + * @var string|int|null + */ public $port; - public $database; + public ?string $database; /** * @var array */ - public $connection = []; + public array $connection = []; /** * @var array */ - public $options = []; + public array $options = []; } \ No newline at end of file diff --git a/src/AnimeClient/Types/Config/Database.php b/src/AnimeClient/Types/Config/Database.php index 53342054..7e1176dc 100644 --- a/src/AnimeClient/Types/Config/Database.php +++ b/src/AnimeClient/Types/Config/Database.php @@ -22,35 +22,35 @@ class Database extends AbstractType { /** * @var string */ - public $type; + public string $type = 'sqlite'; /** - * @var string + * @var string|null */ - public $host; + public ?string $host; /** - * @var string + * @var string|null */ - public $user; + public ?string $user; /** - * @var string + * @var string|null */ - public $pass; + public ?string $pass; /** - * @var string|int + * @var string|int|null */ public $port; /** - * @var string + * @var string|null */ - public $database; + public ?string $database; /** - * @var string + * @var string|null */ - public $file; + public ?string $file; } \ No newline at end of file diff --git a/src/AnimeClient/Types/FormItem.php b/src/AnimeClient/Types/FormItem.php index 1e0ed155..9f9b8ea0 100644 --- a/src/AnimeClient/Types/FormItem.php +++ b/src/AnimeClient/Types/FormItem.php @@ -25,19 +25,13 @@ class FormItem extends AbstractType { */ public $id; - /** - * @var string - */ public ?string $anilist_item_id; /** * @var string|int */ - public $mal_id; + public $mal_id; - /** - * @var FormItemData - */ public ?FormItemData $data; public function setData($value): void diff --git a/src/AnimeClient/Types/FormItemData.php b/src/AnimeClient/Types/FormItemData.php index 853467bc..aec33176 100644 --- a/src/AnimeClient/Types/FormItemData.php +++ b/src/AnimeClient/Types/FormItemData.php @@ -20,14 +20,8 @@ namespace Aviat\AnimeClient\Types; * Type representing a Media object for editing/syncing */ class FormItemData extends AbstractType { - /** - * @var string - */ public ?string $notes; - /** - * @var bool - */ public ?bool $private = FALSE; /** @@ -50,9 +44,6 @@ class FormItemData extends AbstractType { */ public $reconsumeCount; - /** - * @var bool - */ public bool $reconsuming = FALSE; /** @@ -62,8 +53,6 @@ class FormItemData extends AbstractType { /** * W3C Format Date string - * - * @var string */ public ?string $updatedAt; } diff --git a/src/AnimeClient/Types/HistoryItem.php b/src/AnimeClient/Types/HistoryItem.php index 6d23c592..9ee925da 100644 --- a/src/AnimeClient/Types/HistoryItem.php +++ b/src/AnimeClient/Types/HistoryItem.php @@ -20,47 +20,47 @@ use DateTimeImmutable; class HistoryItem extends AbstractType { /** - * @var string Title of the anime/manga + * Title of the anime/manga */ public string $title = ''; /** - * @var string The url of the cover image + * The url of the cover image */ public string $coverImg = ''; /** - * @var string The type of action done + * The type of action done */ public string $action = ''; /** - * @var bool Is this item a combination of items? + * Is this item a combination of items? */ public bool $isAggregate = FALSE; /** - * @var string The kind of history event + * The kind of history event */ public string $kind = ''; /** - * @var DateTimeImmutable When the item was last updated + * When the item was last updated */ public ?DateTimeImmutable $updated = NULL; /** - * @var array Range of updated times for the aggregated item + * Range of updated times for the aggregated item */ public array $dateRange = []; /** - * @var string Url to details page + * Url to details page */ public string $url = ''; /** - * @var array The item before transformation + * The item before transformation */ public array $original = []; } \ No newline at end of file diff --git a/src/AnimeClient/Types/Media.php b/src/AnimeClient/Types/Media.php index af9cb2a3..8f2375d3 100644 --- a/src/AnimeClient/Types/Media.php +++ b/src/AnimeClient/Types/Media.php @@ -17,13 +17,7 @@ namespace Aviat\AnimeClient\Types; final class Media extends AbstractType { - /** - * @var array - */ public array $anime = []; - /** - * @var array - */ public array $manga = []; } \ No newline at end of file diff --git a/src/AnimeClient/Types/User.php b/src/AnimeClient/Types/User.php index f508d07b..9f8a84e6 100644 --- a/src/AnimeClient/Types/User.php +++ b/src/AnimeClient/Types/User.php @@ -20,48 +20,21 @@ namespace Aviat\AnimeClient\Types; * Type representing a Kitsu user for display */ final class User extends AbstractType { - /** - * @var string - */ public ?string $about; - /** - * @var string - */ public ?string $avatar; - /** - * @var array - */ public ?array $favorites; - /** - * @var string - */ public ?string $location; - /** - * @var string - */ public ?string $name; - /** - * @var string - */ public ?string $slug; - /** - * @var array - */ public ?array $stats; - /** - * @var array - */ public ?array $waifu; - /** - * @var string - */ public ?string $website; } \ No newline at end of file diff --git a/src/Ion/Event.php b/src/Ion/Event.php index 6e09aff9..e8efcac2 100644 --- a/src/Ion/Event.php +++ b/src/Ion/Event.php @@ -49,7 +49,7 @@ class Event { // Call each subscriber with the provided arguments if (array_key_exists($eventName, static::$eventMap)) { - array_walk(static::$eventMap[$eventName], fn ($fn) => $fn(...$args)); + array_walk(static::$eventMap[$eventName], static fn ($fn) => $fn(...$args)); } } } \ No newline at end of file diff --git a/src/Ion/Friend.php b/src/Ion/Friend.php index fcd4bad5..3f694099 100644 --- a/src/Ion/Friend.php +++ b/src/Ion/Friend.php @@ -37,7 +37,7 @@ class Friend { * Reflection class of the object * @var ReflectionClass */ - private $_reflect_; + private ReflectionClass $_reflect_; /** * Create a friend object diff --git a/src/Ion/View/HttpView.php b/src/Ion/View/HttpView.php index 7e859c51..b2586118 100644 --- a/src/Ion/View/HttpView.php +++ b/src/Ion/View/HttpView.php @@ -180,6 +180,7 @@ class HttpView implements ViewInterface{ /** * Send the appropriate response * + * @codeCoverageIgnore * @throws DoubleRenderException * @throws \InvalidArgumentException * @return void diff --git a/tests/AnimeClient/UtilTest.php b/tests/AnimeClient/UtilTest.php index 417ee300..083b518e 100644 --- a/tests/AnimeClient/UtilTest.php +++ b/tests/AnimeClient/UtilTest.php @@ -92,4 +92,10 @@ class UtilTest extends AnimeClientTestCase { ]); $this->assertEquals(!$expected, $this->util->isFormPage()); } + + public function testAriaCurrent(): void + { + $this->assertEquals('true', Util::ariaCurrent(true)); + $this->assertEquals('false', Util::ariaCurrent(false)); + } } diff --git a/tests/Ion/EventTest.php b/tests/Ion/EventTest.php new file mode 100644 index 00000000..1741c382 --- /dev/null +++ b/tests/Ion/EventTest.php @@ -0,0 +1,29 @@ + + * @copyright 2015 - 2020 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 5.1 + * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient + */ + +namespace Aviat\Ion\Tests; + +use Aviat\Ion\Event; +use PHPUnit\Framework\TestCase; + +class EventTest extends TestCase { + + public function testEmit(): void + { + Event::on('test-event', fn ($fired) => $this->assertTrue($fired)); + Event::emit('test-event', [true]); + } +} \ No newline at end of file diff --git a/tests/Ion/View/HtmlViewTest.php b/tests/Ion/View/HtmlViewTest.php index ba75d8ae..4d9ea1a8 100644 --- a/tests/Ion/View/HtmlViewTest.php +++ b/tests/Ion/View/HtmlViewTest.php @@ -29,7 +29,7 @@ class HtmlViewTest extends HttpViewTest { $this->view = new TestHtmlView($this->container); } - public function testRenderTemplate() + public function testRenderTemplate(): void { $path = _dir(self::TEST_VIEW_DIR, 'test_view.php'); $expected = 'foo'; diff --git a/tests/Ion/View/HttpViewTest.php b/tests/Ion/View/HttpViewTest.php index 1294d399..3d276bd3 100644 --- a/tests/Ion/View/HttpViewTest.php +++ b/tests/Ion/View/HttpViewTest.php @@ -32,7 +32,7 @@ class HttpViewTest extends IonTestCase { $this->friend = new Friend($this->view); } - public function testGetOutput() + public function testGetOutput():void { $this->friend->setOutput('foo'); $this->assertEquals('foo', $this->friend->getOutput()); @@ -42,34 +42,34 @@ class HttpViewTest extends IonTestCase { $this->assertTrue($this->friend->hasRendered); } - public function testSetOutput() + public function testSetOutput():void { $same = $this->view->setOutput('

'); $this->assertEquals($same, $this->view); $this->assertEquals('

', $this->view->getOutput()); } - public function testAppendOutput() + public function testAppendOutput():void { $this->view->setOutput('

'); $this->view->appendOutput('

'); $this->assertEquals('

', $this->view->getOutput()); } - public function testSetStatusCode() + public function testSetStatusCode():void { $view = $this->view->setStatusCode(404); $this->assertEquals(404, $view->response->getStatusCode()); } - public function testAddHeader() + public function testAddHeader():void { $view = $this->view->addHeader('foo', 'bar'); $this->assertTrue($view->response->hasHeader('foo')); $this->assertEquals(['bar'], $view->response->getHeader('foo')); } - public function testSendDoubleRenderException() + public function testSendDoubleRenderException():void { $this->expectException(DoubleRenderException::class); $this->expectExceptionMessage('A view can only be rendered once, because headers can only be sent once.'); @@ -81,7 +81,7 @@ class HttpViewTest extends IonTestCase { $this->view->send(); } - public function test__toStringDoubleRenderException() + public function test__toStringDoubleRenderException():void { $this->expectException(DoubleRenderException::class); $this->expectExceptionMessage('A view can only be rendered once, because headers can only be sent once.'); @@ -92,4 +92,18 @@ class HttpViewTest extends IonTestCase { // Second render $this->view->__toString(); } + + public function testRedirect(): void + { + $this->friend->redirect('http://example.com'); + $this->assertInstanceOf(\Laminas\Diactoros\Response\RedirectResponse::class, $this->friend->response); + } + + public function testOutput(): void + { + $this->friend->setOutput('

'); + $this->friend->send(); + + $this->assertTrue($this->friend->hasRendered); + } } \ No newline at end of file diff --git a/tests/Ion/View/JsonViewTest.php b/tests/Ion/View/JsonViewTest.php index eb53cfa8..2eb6a22e 100644 --- a/tests/Ion/View/JsonViewTest.php +++ b/tests/Ion/View/JsonViewTest.php @@ -28,7 +28,7 @@ class JsonViewTest extends HttpViewTest { $this->friend = new Friend($this->view); } - public function testSetOutputJSON() + public function testSetOutputJSON():void { // Extend view class to remove destructor which does output $view = new TestJsonView(); @@ -40,7 +40,7 @@ class JsonViewTest extends HttpViewTest { $this->assertEquals($expected, $view->getOutput()); } - public function testSetOutput() + public function testSetOutput():void { // Directly set string $view = new TestJsonView(); @@ -50,7 +50,7 @@ class JsonViewTest extends HttpViewTest { $this->assertEquals($expected, $view->getOutput()); } - public function testOutput() + public function testOutputType():void { $this->assertEquals('application/json', $this->friend->contentType); } -- 2.43.2 From 71ee0a324c2aa955d6749514c1f317e6f0f8a935 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Thu, 10 Dec 2020 17:04:45 -0500 Subject: [PATCH 04/14] A little more test coverage --- src/AnimeClient/Anilist.php | 24 ------------------------ src/AnimeClient/MenuGenerator.php | 12 ++---------- src/AnimeClient/UrlGenerator.php | 2 ++ tests/AnimeClient/UrlGeneratorTest.php | 11 +++++++++++ 4 files changed, 15 insertions(+), 34 deletions(-) diff --git a/src/AnimeClient/Anilist.php b/src/AnimeClient/Anilist.php index 44277fba..7ddf0c6d 100644 --- a/src/AnimeClient/Anilist.php +++ b/src/AnimeClient/Anilist.php @@ -64,28 +64,4 @@ final class Anilist { MangaReadingStatus::DROPPED => KMRS::DROPPED, MangaReadingStatus::PLAN_TO_READ => KMRS::PLAN_TO_READ, ]; - - public static function getIdToWatchingStatusMap(): array - { - return [ - 'CURRENT' => AnimeWatchingStatus::WATCHING, - 'COMPLETED' => AnimeWatchingStatus::COMPLETED, - 'PAUSED' => AnimeWatchingStatus::ON_HOLD, - 'DROPPED' => AnimeWatchingStatus::DROPPED, - 'PLANNING' => AnimeWatchingStatus::PLAN_TO_WATCH, - 'REPEATING' => AnimeWatchingStatus::WATCHING, - ]; - } - - public static function getIdToReadingStatusMap(): array - { - return [ - 'CURRENT' => MangaReadingStatus::READING, - 'COMPLETED' => MangaReadingStatus::COMPLETED, - 'PAUSED' => MangaReadingStatus::ON_HOLD, - 'DROPPED' => MangaReadingStatus::DROPPED, - 'PLANNING' => MangaReadingStatus::PLAN_TO_READ, - 'REPEATING' => MangaReadingStatus::READING, - ]; - } } \ No newline at end of file diff --git a/src/AnimeClient/MenuGenerator.php b/src/AnimeClient/MenuGenerator.php index 65e5a98c..d26e2af1 100644 --- a/src/AnimeClient/MenuGenerator.php +++ b/src/AnimeClient/MenuGenerator.php @@ -49,15 +49,7 @@ final class MenuGenerator extends UrlGenerator { */ public static function new(ContainerInterface $container): self { - try - { - return new static($container); - } - catch (\Throwable $e) - { - dump($e); - die(); - } + return new self($container); } /** @@ -67,7 +59,7 @@ final class MenuGenerator extends UrlGenerator { * @throws ConfigException * @return string */ - public function generate($menu) : string + public function generate(string $menu) : string { $menus = $this->config->get('menus'); $parsedConfig = $this->parseConfig($menus); diff --git a/src/AnimeClient/UrlGenerator.php b/src/AnimeClient/UrlGenerator.php index 61ac230d..ab94dc52 100644 --- a/src/AnimeClient/UrlGenerator.php +++ b/src/AnimeClient/UrlGenerator.php @@ -110,7 +110,9 @@ class UrlGenerator extends RoutingBase { if ($defaultPath !== NULL) { + // @codeCoverageIgnoreStart return $this->url("{$type}/{$defaultPath}"); + // @codeCoverageIgnoreEnd } throw new InvalidArgumentException("Invalid default type: '{$type}'"); diff --git a/tests/AnimeClient/UrlGeneratorTest.php b/tests/AnimeClient/UrlGeneratorTest.php index 9e9da549..ab388d91 100644 --- a/tests/AnimeClient/UrlGeneratorTest.php +++ b/tests/AnimeClient/UrlGeneratorTest.php @@ -18,6 +18,7 @@ namespace Aviat\AnimeClient\Tests; use Aviat\AnimeClient\UrlGenerator; use Aviat\Ion\Config; +use Aviat\Ion\Exception\DoubleRenderException; class UrlGeneratorTest extends AnimeClientTestCase { @@ -49,4 +50,14 @@ class UrlGeneratorTest extends AnimeClientTestCase { $result = $urlGenerator->assetUrl(...$args); $this->assertEquals($expected, $result); } + + public function testDefaultUrlInvalidType(): void + { + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage("Invalid default type: 'foo'"); + + $urlGenerator = new UrlGenerator($this->container); + $url = $urlGenerator->defaultUrl('foo'); + + } } \ No newline at end of file -- 2.43.2 From 191ec11258965a6af8f34adaf3837ebf2862e3b1 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Thu, 10 Dec 2020 17:06:50 -0500 Subject: [PATCH 05/14] Bump version in header comments --- app/bootstrap.php | 4 ++-- build/header_comment.txt | 4 ++-- index.php | 4 ++-- src/AnimeClient/API/APIRequestBuilder.php | 4 ++-- src/AnimeClient/API/AbstractListItem.php | 4 ++-- src/AnimeClient/API/Anilist/ListItem.php | 4 ++-- src/AnimeClient/API/Anilist/MissingIdException.php | 4 ++-- src/AnimeClient/API/Anilist/Model.php | 4 ++-- src/AnimeClient/API/Anilist/RequestBuilder.php | 4 ++-- src/AnimeClient/API/Anilist/RequestBuilderTrait.php | 4 ++-- .../API/Anilist/Transformer/AnimeListTransformer.php | 4 ++-- .../API/Anilist/Transformer/MangaListTransformer.php | 4 ++-- src/AnimeClient/API/Anilist/Types/MediaListEntry.php | 4 ++-- src/AnimeClient/API/CacheTrait.php | 4 ++-- .../API/Enum/AnimeWatchingStatus/Anilist.php | 4 ++-- src/AnimeClient/API/Enum/AnimeWatchingStatus/Kitsu.php | 4 ++-- src/AnimeClient/API/Enum/AnimeWatchingStatus/Route.php | 4 ++-- src/AnimeClient/API/Enum/AnimeWatchingStatus/Title.php | 4 ++-- .../API/Enum/MangaReadingStatus/Anilist.php | 4 ++-- src/AnimeClient/API/Enum/MangaReadingStatus/Kitsu.php | 4 ++-- src/AnimeClient/API/Enum/MangaReadingStatus/Route.php | 4 ++-- src/AnimeClient/API/Enum/MangaReadingStatus/Title.php | 4 ++-- src/AnimeClient/API/FailedResponseException.php | 4 ++-- src/AnimeClient/API/Kitsu/Auth.php | 4 ++-- src/AnimeClient/API/Kitsu/Enum/AnimeAiringStatus.php | 4 ++-- .../API/Kitsu/Enum/MangaPublishingStatus.php | 4 ++-- src/AnimeClient/API/Kitsu/ListItem.php | 4 ++-- src/AnimeClient/API/Kitsu/Model.php | 10 ++++++++-- src/AnimeClient/API/Kitsu/MutationTrait.php | 4 ++-- src/AnimeClient/API/Kitsu/RequestBuilder.php | 4 ++-- src/AnimeClient/API/Kitsu/RequestBuilderTrait.php | 4 ++-- .../API/Kitsu/Transformer/AnimeHistoryTransformer.php | 4 ++-- .../API/Kitsu/Transformer/AnimeListTransformer.php | 4 ++-- .../API/Kitsu/Transformer/AnimeTransformer.php | 4 ++-- .../API/Kitsu/Transformer/CharacterTransformer.php | 4 ++-- .../API/Kitsu/Transformer/HistoryTransformer.php | 4 ++-- .../API/Kitsu/Transformer/LibraryEntryTransformer.php | 4 ++-- .../API/Kitsu/Transformer/MangaHistoryTransformer.php | 4 ++-- .../API/Kitsu/Transformer/MangaListTransformer.php | 4 ++-- .../API/Kitsu/Transformer/MangaTransformer.php | 4 ++-- .../API/Kitsu/Transformer/PersonTransformer.php | 4 ++-- .../API/Kitsu/Transformer/UserTransformer.php | 4 ++-- src/AnimeClient/API/Mapping/AnimeWatchingStatus.php | 4 ++-- src/AnimeClient/API/Mapping/MangaReadingStatus.php | 4 ++-- src/AnimeClient/API/ParallelAPIRequest.php | 4 ++-- src/AnimeClient/Anilist.php | 4 ++-- src/AnimeClient/AnimeClient.php | 4 ++-- src/AnimeClient/Command/BaseCommand.php | 4 ++-- src/AnimeClient/Command/CacheClear.php | 4 ++-- src/AnimeClient/Command/CachePrime.php | 4 ++-- src/AnimeClient/Command/ClearThumbnails.php | 4 ++-- src/AnimeClient/Command/SyncLists.php | 4 ++-- src/AnimeClient/Command/UpdateThumbnails.php | 4 ++-- src/AnimeClient/Component/AnimeCover.php | 4 ++-- src/AnimeClient/Component/Character.php | 4 ++-- src/AnimeClient/Component/ComponentTrait.php | 4 ++-- src/AnimeClient/Component/MangaCover.php | 4 ++-- src/AnimeClient/Component/Media.php | 4 ++-- src/AnimeClient/Component/Tabs.php | 4 ++-- src/AnimeClient/Component/VerticalTabs.php | 4 ++-- src/AnimeClient/Controller.php | 4 ++-- src/AnimeClient/Controller/Anime.php | 4 ++-- src/AnimeClient/Controller/AnimeCollection.php | 4 ++-- src/AnimeClient/Controller/Character.php | 4 ++-- src/AnimeClient/Controller/History.php | 4 ++-- src/AnimeClient/Controller/Images.php | 4 ++-- src/AnimeClient/Controller/Manga.php | 4 ++-- src/AnimeClient/Controller/Misc.php | 4 ++-- src/AnimeClient/Controller/People.php | 4 ++-- src/AnimeClient/Controller/Settings.php | 4 ++-- src/AnimeClient/Controller/User.php | 4 ++-- src/AnimeClient/Dispatcher.php | 4 ++-- src/AnimeClient/Enum/API.php | 4 ++-- src/AnimeClient/Enum/EventType.php | 4 ++-- src/AnimeClient/Enum/MediaType.php | 4 ++-- src/AnimeClient/Enum/SyncAction.php | 4 ++-- src/AnimeClient/FormGenerator.php | 4 ++-- src/AnimeClient/Helper/Form.php | 4 ++-- src/AnimeClient/Helper/Menu.php | 4 ++-- src/AnimeClient/Helper/Picture.php | 4 ++-- src/AnimeClient/Kitsu.php | 4 ++-- src/AnimeClient/MenuGenerator.php | 4 ++-- src/AnimeClient/Model/API.php | 4 ++-- src/AnimeClient/Model/Anime.php | 4 ++-- src/AnimeClient/Model/AnimeCollection.php | 4 ++-- src/AnimeClient/Model/Collection.php | 4 ++-- src/AnimeClient/Model/DB.php | 4 ++-- src/AnimeClient/Model/Manga.php | 4 ++-- src/AnimeClient/Model/MediaTrait.php | 4 ++-- src/AnimeClient/Model/Settings.php | 4 ++-- src/AnimeClient/RoutingBase.php | 4 ++-- src/AnimeClient/Types/AbstractType.php | 4 ++-- src/AnimeClient/Types/Anime.php | 4 ++-- src/AnimeClient/Types/AnimeListItem.php | 4 ++-- src/AnimeClient/Types/AnimePage.php | 4 ++-- src/AnimeClient/Types/Character.php | 4 ++-- src/AnimeClient/Types/Characters.php | 4 ++-- src/AnimeClient/Types/Config.php | 4 ++-- src/AnimeClient/Types/Config/Anilist.php | 4 ++-- src/AnimeClient/Types/Config/Cache.php | 4 ++-- src/AnimeClient/Types/Config/Database.php | 4 ++-- src/AnimeClient/Types/FormItem.php | 4 ++-- src/AnimeClient/Types/FormItemData.php | 4 ++-- src/AnimeClient/Types/HistoryItem.php | 4 ++-- src/AnimeClient/Types/MangaListItem.php | 4 ++-- src/AnimeClient/Types/MangaListItemDetail.php | 4 ++-- src/AnimeClient/Types/MangaPage.php | 4 ++-- src/AnimeClient/Types/Media.php | 4 ++-- src/AnimeClient/Types/Person.php | 4 ++-- src/AnimeClient/Types/UndefinedPropertyException.php | 4 ++-- src/AnimeClient/Types/User.php | 4 ++-- src/AnimeClient/UrlGenerator.php | 4 ++-- src/AnimeClient/Util.php | 4 ++-- src/AnimeClient/constants.php | 4 ++-- src/Ion/Config.php | 4 ++-- src/Ion/ConfigInterface.php | 4 ++-- src/Ion/Di/Container.php | 4 ++-- src/Ion/Di/ContainerAware.php | 4 ++-- src/Ion/Di/ContainerAwareInterface.php | 4 ++-- src/Ion/Di/ContainerInterface.php | 4 ++-- src/Ion/Di/Exception/ContainerException.php | 4 ++-- src/Ion/Di/Exception/NotFoundException.php | 4 ++-- src/Ion/Enum.php | 4 ++-- src/Ion/Event.php | 4 ++-- src/Ion/Exception/ConfigException.php | 4 ++-- src/Ion/Exception/DoubleRenderException.php | 4 ++-- src/Ion/Friend.php | 4 ++-- src/Ion/Json.php | 4 ++-- src/Ion/JsonException.php | 4 ++-- src/Ion/Model.php | 4 ++-- src/Ion/Transformer/AbstractTransformer.php | 4 ++-- src/Ion/Transformer/TransformerInterface.php | 4 ++-- src/Ion/Type/ArrayType.php | 4 ++-- src/Ion/Type/StringType.php | 4 ++-- src/Ion/View/HtmlView.php | 4 ++-- src/Ion/View/HttpView.php | 4 ++-- src/Ion/View/JsonView.php | 4 ++-- src/Ion/ViewInterface.php | 4 ++-- src/Ion/functions.php | 4 ++-- tests/AnimeClient/API/APIRequestBuilderTest.php | 4 ++-- tests/AnimeClient/API/CacheTraitTest.php | 4 ++-- tests/AnimeClient/API/Kitsu/ModelTest.php | 4 ++-- .../API/Kitsu/Transformer/AnimeListTransformerTest.php | 4 ++-- .../API/Kitsu/Transformer/AnimeTransformerTest.php | 4 ++-- .../API/Kitsu/Transformer/MangaListTransformerTest.php | 4 ++-- .../API/Kitsu/Transformer/MangaTransformerTest.php | 4 ++-- tests/AnimeClient/API/ParallelAPIRequestTest.php | 4 ++-- tests/AnimeClient/AnimeClientTest.php | 4 ++-- tests/AnimeClient/AnimeClientTestCase.php | 4 ++-- tests/AnimeClient/Command/BaseCommandTest.php | 4 ++-- tests/AnimeClient/ControllerTest.php | 4 ++-- tests/AnimeClient/DispatcherTest.php | 4 ++-- tests/AnimeClient/FormGeneratorTest.php | 4 ++-- tests/AnimeClient/Helper/MenuHelperTest.php | 4 ++-- tests/AnimeClient/Helper/PictureHelperTest.php | 4 ++-- tests/AnimeClient/KitsuTest.php | 4 ++-- tests/AnimeClient/MenuGeneratorTest.php | 4 ++-- tests/AnimeClient/RequirementsTest.php | 4 ++-- tests/AnimeClient/RoutingBaseTest.php | 4 ++-- tests/AnimeClient/TestSessionHandler.php | 4 ++-- tests/AnimeClient/UrlGeneratorTest.php | 4 ++-- tests/AnimeClient/UtilTest.php | 4 ++-- tests/Ion/BaseModelTest.php | 4 ++-- tests/Ion/ConfigTest.php | 4 ++-- tests/Ion/Di/ContainerAwareTest.php | 4 ++-- tests/Ion/Di/ContainerTest.php | 4 ++-- tests/Ion/EnumTest.php | 4 ++-- tests/Ion/EventTest.php | 4 ++-- tests/Ion/Exception/DoubleRenderExceptionTest.php | 4 ++-- tests/Ion/FriendTest.php | 4 ++-- tests/Ion/IonTestCase.php | 4 ++-- tests/Ion/JsonTest.php | 4 ++-- tests/Ion/TestSessionHandler.php | 4 ++-- tests/Ion/Transformer/AbstractTransformerTest.php | 4 ++-- tests/Ion/Type/ArrayTypeTest.php | 4 ++-- tests/Ion/Type/StringTypeTest.php | 4 ++-- tests/Ion/View/HtmlViewTest.php | 4 ++-- tests/Ion/View/HttpViewTest.php | 4 ++-- tests/Ion/View/JsonViewTest.php | 4 ++-- tests/Ion/functionsTest.php | 4 ++-- tests/Ion/mocks.php | 4 ++-- 181 files changed, 368 insertions(+), 362 deletions(-) diff --git a/app/bootstrap.php b/app/bootstrap.php index 149c1c2a..fe1f461c 100644 --- a/app/bootstrap.php +++ b/app/bootstrap.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/build/header_comment.txt b/build/header_comment.txt index e780e729..99ad1c23 100644 --- a/build/header_comment.txt +++ b/build/header_comment.txt @@ -3,13 +3,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/index.php b/index.php index 042e5b91..8a931bff 100644 --- a/index.php +++ b/index.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/APIRequestBuilder.php b/src/AnimeClient/API/APIRequestBuilder.php index 333aa311..efff0481 100644 --- a/src/AnimeClient/API/APIRequestBuilder.php +++ b/src/AnimeClient/API/APIRequestBuilder.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/AbstractListItem.php b/src/AnimeClient/API/AbstractListItem.php index 2b92ed51..8da8d5a7 100644 --- a/src/AnimeClient/API/AbstractListItem.php +++ b/src/AnimeClient/API/AbstractListItem.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Anilist/ListItem.php b/src/AnimeClient/API/Anilist/ListItem.php index 15aa3653..da651147 100644 --- a/src/AnimeClient/API/Anilist/ListItem.php +++ b/src/AnimeClient/API/Anilist/ListItem.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Anilist/MissingIdException.php b/src/AnimeClient/API/Anilist/MissingIdException.php index 3b0cfb1d..4cbaad84 100644 --- a/src/AnimeClient/API/Anilist/MissingIdException.php +++ b/src/AnimeClient/API/Anilist/MissingIdException.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Anilist/Model.php b/src/AnimeClient/API/Anilist/Model.php index 9d7bbcb8..69373483 100644 --- a/src/AnimeClient/API/Anilist/Model.php +++ b/src/AnimeClient/API/Anilist/Model.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Anilist/RequestBuilder.php b/src/AnimeClient/API/Anilist/RequestBuilder.php index f1794b42..4ac4a7b1 100644 --- a/src/AnimeClient/API/Anilist/RequestBuilder.php +++ b/src/AnimeClient/API/Anilist/RequestBuilder.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Anilist/RequestBuilderTrait.php b/src/AnimeClient/API/Anilist/RequestBuilderTrait.php index 05e30ae2..789c6535 100644 --- a/src/AnimeClient/API/Anilist/RequestBuilderTrait.php +++ b/src/AnimeClient/API/Anilist/RequestBuilderTrait.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Anilist/Transformer/AnimeListTransformer.php b/src/AnimeClient/API/Anilist/Transformer/AnimeListTransformer.php index 59356d47..7411cae0 100644 --- a/src/AnimeClient/API/Anilist/Transformer/AnimeListTransformer.php +++ b/src/AnimeClient/API/Anilist/Transformer/AnimeListTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Anilist/Transformer/MangaListTransformer.php b/src/AnimeClient/API/Anilist/Transformer/MangaListTransformer.php index 1d9756fe..81479dbe 100644 --- a/src/AnimeClient/API/Anilist/Transformer/MangaListTransformer.php +++ b/src/AnimeClient/API/Anilist/Transformer/MangaListTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Anilist/Types/MediaListEntry.php b/src/AnimeClient/API/Anilist/Types/MediaListEntry.php index 61d547ed..164e4841 100644 --- a/src/AnimeClient/API/Anilist/Types/MediaListEntry.php +++ b/src/AnimeClient/API/Anilist/Types/MediaListEntry.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/CacheTrait.php b/src/AnimeClient/API/CacheTrait.php index 20c9475d..6baf93a8 100644 --- a/src/AnimeClient/API/CacheTrait.php +++ b/src/AnimeClient/API/CacheTrait.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Enum/AnimeWatchingStatus/Anilist.php b/src/AnimeClient/API/Enum/AnimeWatchingStatus/Anilist.php index d4c007b2..98fbfd95 100644 --- a/src/AnimeClient/API/Enum/AnimeWatchingStatus/Anilist.php +++ b/src/AnimeClient/API/Enum/AnimeWatchingStatus/Anilist.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Enum/AnimeWatchingStatus/Kitsu.php b/src/AnimeClient/API/Enum/AnimeWatchingStatus/Kitsu.php index 09cdf6ab..232bec51 100644 --- a/src/AnimeClient/API/Enum/AnimeWatchingStatus/Kitsu.php +++ b/src/AnimeClient/API/Enum/AnimeWatchingStatus/Kitsu.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Enum/AnimeWatchingStatus/Route.php b/src/AnimeClient/API/Enum/AnimeWatchingStatus/Route.php index 8df067bf..f6fd9538 100644 --- a/src/AnimeClient/API/Enum/AnimeWatchingStatus/Route.php +++ b/src/AnimeClient/API/Enum/AnimeWatchingStatus/Route.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Enum/AnimeWatchingStatus/Title.php b/src/AnimeClient/API/Enum/AnimeWatchingStatus/Title.php index 2f1a8274..d2678904 100644 --- a/src/AnimeClient/API/Enum/AnimeWatchingStatus/Title.php +++ b/src/AnimeClient/API/Enum/AnimeWatchingStatus/Title.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Enum/MangaReadingStatus/Anilist.php b/src/AnimeClient/API/Enum/MangaReadingStatus/Anilist.php index 20c54566..4aff232e 100644 --- a/src/AnimeClient/API/Enum/MangaReadingStatus/Anilist.php +++ b/src/AnimeClient/API/Enum/MangaReadingStatus/Anilist.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Enum/MangaReadingStatus/Kitsu.php b/src/AnimeClient/API/Enum/MangaReadingStatus/Kitsu.php index a5cf4e05..7c534065 100644 --- a/src/AnimeClient/API/Enum/MangaReadingStatus/Kitsu.php +++ b/src/AnimeClient/API/Enum/MangaReadingStatus/Kitsu.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Enum/MangaReadingStatus/Route.php b/src/AnimeClient/API/Enum/MangaReadingStatus/Route.php index 4e591920..578a437f 100644 --- a/src/AnimeClient/API/Enum/MangaReadingStatus/Route.php +++ b/src/AnimeClient/API/Enum/MangaReadingStatus/Route.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Enum/MangaReadingStatus/Title.php b/src/AnimeClient/API/Enum/MangaReadingStatus/Title.php index c257b5af..009c768a 100644 --- a/src/AnimeClient/API/Enum/MangaReadingStatus/Title.php +++ b/src/AnimeClient/API/Enum/MangaReadingStatus/Title.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/FailedResponseException.php b/src/AnimeClient/API/FailedResponseException.php index 3e4d5f64..79a08ce5 100644 --- a/src/AnimeClient/API/FailedResponseException.php +++ b/src/AnimeClient/API/FailedResponseException.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Auth.php b/src/AnimeClient/API/Kitsu/Auth.php index 5a995af2..26a9e7f4 100644 --- a/src/AnimeClient/API/Kitsu/Auth.php +++ b/src/AnimeClient/API/Kitsu/Auth.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Enum/AnimeAiringStatus.php b/src/AnimeClient/API/Kitsu/Enum/AnimeAiringStatus.php index 51946a2e..0bfde974 100644 --- a/src/AnimeClient/API/Kitsu/Enum/AnimeAiringStatus.php +++ b/src/AnimeClient/API/Kitsu/Enum/AnimeAiringStatus.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Enum/MangaPublishingStatus.php b/src/AnimeClient/API/Kitsu/Enum/MangaPublishingStatus.php index e802f2e2..b479a7ea 100644 --- a/src/AnimeClient/API/Kitsu/Enum/MangaPublishingStatus.php +++ b/src/AnimeClient/API/Kitsu/Enum/MangaPublishingStatus.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/ListItem.php b/src/AnimeClient/API/Kitsu/ListItem.php index 258bf108..23dba06d 100644 --- a/src/AnimeClient/API/Kitsu/ListItem.php +++ b/src/AnimeClient/API/Kitsu/ListItem.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Model.php b/src/AnimeClient/API/Kitsu/Model.php index 1114f3a5..6b94bb6b 100644 --- a/src/AnimeClient/API/Kitsu/Model.php +++ b/src/AnimeClient/API/Kitsu/Model.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ @@ -265,6 +265,12 @@ final class Model { return $this->animeTransformer->transform($baseData); } + public function getRandomLibraryAnime(string $status): Anime + { + // @TODO + return Anime::from([]); + } + /** * Get information about a particular anime * diff --git a/src/AnimeClient/API/Kitsu/MutationTrait.php b/src/AnimeClient/API/Kitsu/MutationTrait.php index 4c8432cc..2ebb30ce 100644 --- a/src/AnimeClient/API/Kitsu/MutationTrait.php +++ b/src/AnimeClient/API/Kitsu/MutationTrait.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/RequestBuilder.php b/src/AnimeClient/API/Kitsu/RequestBuilder.php index 24d5b526..f89cc15c 100644 --- a/src/AnimeClient/API/Kitsu/RequestBuilder.php +++ b/src/AnimeClient/API/Kitsu/RequestBuilder.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/RequestBuilderTrait.php b/src/AnimeClient/API/Kitsu/RequestBuilderTrait.php index c56ec62a..2ddea909 100644 --- a/src/AnimeClient/API/Kitsu/RequestBuilderTrait.php +++ b/src/AnimeClient/API/Kitsu/RequestBuilderTrait.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Transformer/AnimeHistoryTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/AnimeHistoryTransformer.php index d96ebaff..fbf96423 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/AnimeHistoryTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/AnimeHistoryTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Transformer/AnimeListTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/AnimeListTransformer.php index 4a2c0e40..a9fdf558 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/AnimeListTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/AnimeListTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Transformer/AnimeTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/AnimeTransformer.php index 3f2b7fa8..1e43afb1 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/AnimeTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/AnimeTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Transformer/CharacterTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/CharacterTransformer.php index 151fcc68..6bc5f76a 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/CharacterTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/CharacterTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Transformer/HistoryTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/HistoryTransformer.php index 1bad7db2..e8b7aa82 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/HistoryTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/HistoryTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Transformer/LibraryEntryTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/LibraryEntryTransformer.php index 269fedec..5fa2c3aa 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/LibraryEntryTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/LibraryEntryTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Transformer/MangaHistoryTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/MangaHistoryTransformer.php index f777f4b0..02feafc0 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/MangaHistoryTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/MangaHistoryTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Transformer/MangaListTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/MangaListTransformer.php index 81a9d930..462fe0d3 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/MangaListTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/MangaListTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Transformer/MangaTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/MangaTransformer.php index e643ec1e..4b6acfce 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/MangaTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/MangaTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Transformer/PersonTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/PersonTransformer.php index 6e8a92bc..b5b41add 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/PersonTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/PersonTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Kitsu/Transformer/UserTransformer.php b/src/AnimeClient/API/Kitsu/Transformer/UserTransformer.php index e9e42ba5..efaa46bd 100644 --- a/src/AnimeClient/API/Kitsu/Transformer/UserTransformer.php +++ b/src/AnimeClient/API/Kitsu/Transformer/UserTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Mapping/AnimeWatchingStatus.php b/src/AnimeClient/API/Mapping/AnimeWatchingStatus.php index 6e3496d2..9c1a8985 100644 --- a/src/AnimeClient/API/Mapping/AnimeWatchingStatus.php +++ b/src/AnimeClient/API/Mapping/AnimeWatchingStatus.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/Mapping/MangaReadingStatus.php b/src/AnimeClient/API/Mapping/MangaReadingStatus.php index 77fe581c..69e6b7df 100644 --- a/src/AnimeClient/API/Mapping/MangaReadingStatus.php +++ b/src/AnimeClient/API/Mapping/MangaReadingStatus.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/API/ParallelAPIRequest.php b/src/AnimeClient/API/ParallelAPIRequest.php index 5cc03166..2ac8a478 100644 --- a/src/AnimeClient/API/ParallelAPIRequest.php +++ b/src/AnimeClient/API/ParallelAPIRequest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Anilist.php b/src/AnimeClient/Anilist.php index 7ddf0c6d..13a270ae 100644 --- a/src/AnimeClient/Anilist.php +++ b/src/AnimeClient/Anilist.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/AnimeClient.php b/src/AnimeClient/AnimeClient.php index 754a1135..4064009e 100644 --- a/src/AnimeClient/AnimeClient.php +++ b/src/AnimeClient/AnimeClient.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Command/BaseCommand.php b/src/AnimeClient/Command/BaseCommand.php index d5e9dc90..0aefe9a4 100644 --- a/src/AnimeClient/Command/BaseCommand.php +++ b/src/AnimeClient/Command/BaseCommand.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Command/CacheClear.php b/src/AnimeClient/Command/CacheClear.php index e3d45e28..156e80ae 100644 --- a/src/AnimeClient/Command/CacheClear.php +++ b/src/AnimeClient/Command/CacheClear.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Command/CachePrime.php b/src/AnimeClient/Command/CachePrime.php index ea44076c..92105d4a 100644 --- a/src/AnimeClient/Command/CachePrime.php +++ b/src/AnimeClient/Command/CachePrime.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Command/ClearThumbnails.php b/src/AnimeClient/Command/ClearThumbnails.php index ab12345d..d67534f0 100644 --- a/src/AnimeClient/Command/ClearThumbnails.php +++ b/src/AnimeClient/Command/ClearThumbnails.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Command/SyncLists.php b/src/AnimeClient/Command/SyncLists.php index 08bf346c..3891cbe4 100644 --- a/src/AnimeClient/Command/SyncLists.php +++ b/src/AnimeClient/Command/SyncLists.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Command/UpdateThumbnails.php b/src/AnimeClient/Command/UpdateThumbnails.php index 70a56953..098735ac 100644 --- a/src/AnimeClient/Command/UpdateThumbnails.php +++ b/src/AnimeClient/Command/UpdateThumbnails.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Component/AnimeCover.php b/src/AnimeClient/Component/AnimeCover.php index d34db72f..f4d6d040 100644 --- a/src/AnimeClient/Component/AnimeCover.php +++ b/src/AnimeClient/Component/AnimeCover.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Component/Character.php b/src/AnimeClient/Component/Character.php index df64471b..1d858437 100644 --- a/src/AnimeClient/Component/Character.php +++ b/src/AnimeClient/Component/Character.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Component/ComponentTrait.php b/src/AnimeClient/Component/ComponentTrait.php index 1e71ae4e..040171b0 100644 --- a/src/AnimeClient/Component/ComponentTrait.php +++ b/src/AnimeClient/Component/ComponentTrait.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Component/MangaCover.php b/src/AnimeClient/Component/MangaCover.php index 422e4ecc..1a5cf004 100644 --- a/src/AnimeClient/Component/MangaCover.php +++ b/src/AnimeClient/Component/MangaCover.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Component/Media.php b/src/AnimeClient/Component/Media.php index 5da84759..4dcc55ec 100644 --- a/src/AnimeClient/Component/Media.php +++ b/src/AnimeClient/Component/Media.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Component/Tabs.php b/src/AnimeClient/Component/Tabs.php index 56a1c42e..ae8e379c 100644 --- a/src/AnimeClient/Component/Tabs.php +++ b/src/AnimeClient/Component/Tabs.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Component/VerticalTabs.php b/src/AnimeClient/Component/VerticalTabs.php index 07b6ecf9..ac117910 100644 --- a/src/AnimeClient/Component/VerticalTabs.php +++ b/src/AnimeClient/Component/VerticalTabs.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Controller.php b/src/AnimeClient/Controller.php index 15644f78..75c93aad 100644 --- a/src/AnimeClient/Controller.php +++ b/src/AnimeClient/Controller.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Controller/Anime.php b/src/AnimeClient/Controller/Anime.php index d9aa20d5..1491a405 100644 --- a/src/AnimeClient/Controller/Anime.php +++ b/src/AnimeClient/Controller/Anime.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Controller/AnimeCollection.php b/src/AnimeClient/Controller/AnimeCollection.php index 351b3ccd..30950ed2 100644 --- a/src/AnimeClient/Controller/AnimeCollection.php +++ b/src/AnimeClient/Controller/AnimeCollection.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Controller/Character.php b/src/AnimeClient/Controller/Character.php index da5b5415..55be8576 100644 --- a/src/AnimeClient/Controller/Character.php +++ b/src/AnimeClient/Controller/Character.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Controller/History.php b/src/AnimeClient/Controller/History.php index fa468095..c6508ee8 100644 --- a/src/AnimeClient/Controller/History.php +++ b/src/AnimeClient/Controller/History.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Controller/Images.php b/src/AnimeClient/Controller/Images.php index 5d551062..8c9084c3 100644 --- a/src/AnimeClient/Controller/Images.php +++ b/src/AnimeClient/Controller/Images.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Controller/Manga.php b/src/AnimeClient/Controller/Manga.php index 7e5acaca..c8c22a2d 100644 --- a/src/AnimeClient/Controller/Manga.php +++ b/src/AnimeClient/Controller/Manga.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Controller/Misc.php b/src/AnimeClient/Controller/Misc.php index 0b85901a..928028b7 100644 --- a/src/AnimeClient/Controller/Misc.php +++ b/src/AnimeClient/Controller/Misc.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Controller/People.php b/src/AnimeClient/Controller/People.php index 6beecec4..07cb7976 100644 --- a/src/AnimeClient/Controller/People.php +++ b/src/AnimeClient/Controller/People.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Controller/Settings.php b/src/AnimeClient/Controller/Settings.php index e8b9c3e0..f23eeeaa 100644 --- a/src/AnimeClient/Controller/Settings.php +++ b/src/AnimeClient/Controller/Settings.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Controller/User.php b/src/AnimeClient/Controller/User.php index ed0b0692..e65dfc6d 100644 --- a/src/AnimeClient/Controller/User.php +++ b/src/AnimeClient/Controller/User.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Dispatcher.php b/src/AnimeClient/Dispatcher.php index d8706bc8..4adcceeb 100644 --- a/src/AnimeClient/Dispatcher.php +++ b/src/AnimeClient/Dispatcher.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Enum/API.php b/src/AnimeClient/Enum/API.php index 4c4163fc..fcbe7f31 100644 --- a/src/AnimeClient/Enum/API.php +++ b/src/AnimeClient/Enum/API.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Enum/EventType.php b/src/AnimeClient/Enum/EventType.php index 631f78a2..0d10245c 100644 --- a/src/AnimeClient/Enum/EventType.php +++ b/src/AnimeClient/Enum/EventType.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Enum/MediaType.php b/src/AnimeClient/Enum/MediaType.php index 9c668b98..bdcfa44d 100644 --- a/src/AnimeClient/Enum/MediaType.php +++ b/src/AnimeClient/Enum/MediaType.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Enum/SyncAction.php b/src/AnimeClient/Enum/SyncAction.php index 0d503a13..d1b2ce1e 100644 --- a/src/AnimeClient/Enum/SyncAction.php +++ b/src/AnimeClient/Enum/SyncAction.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/FormGenerator.php b/src/AnimeClient/FormGenerator.php index 94bbc28e..314639da 100644 --- a/src/AnimeClient/FormGenerator.php +++ b/src/AnimeClient/FormGenerator.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Helper/Form.php b/src/AnimeClient/Helper/Form.php index b1a60f93..39f88347 100644 --- a/src/AnimeClient/Helper/Form.php +++ b/src/AnimeClient/Helper/Form.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Helper/Menu.php b/src/AnimeClient/Helper/Menu.php index ad3fa263..2606af86 100644 --- a/src/AnimeClient/Helper/Menu.php +++ b/src/AnimeClient/Helper/Menu.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Helper/Picture.php b/src/AnimeClient/Helper/Picture.php index 031ef77d..a005499e 100644 --- a/src/AnimeClient/Helper/Picture.php +++ b/src/AnimeClient/Helper/Picture.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Kitsu.php b/src/AnimeClient/Kitsu.php index eec30eea..415f9870 100644 --- a/src/AnimeClient/Kitsu.php +++ b/src/AnimeClient/Kitsu.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/MenuGenerator.php b/src/AnimeClient/MenuGenerator.php index d26e2af1..fc36559d 100644 --- a/src/AnimeClient/MenuGenerator.php +++ b/src/AnimeClient/MenuGenerator.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Model/API.php b/src/AnimeClient/Model/API.php index 5c14cce1..27dec903 100644 --- a/src/AnimeClient/Model/API.php +++ b/src/AnimeClient/Model/API.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Model/Anime.php b/src/AnimeClient/Model/Anime.php index 3458b6b3..a476d6c9 100644 --- a/src/AnimeClient/Model/Anime.php +++ b/src/AnimeClient/Model/Anime.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Model/AnimeCollection.php b/src/AnimeClient/Model/AnimeCollection.php index 1bfab454..18214f1b 100644 --- a/src/AnimeClient/Model/AnimeCollection.php +++ b/src/AnimeClient/Model/AnimeCollection.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Model/Collection.php b/src/AnimeClient/Model/Collection.php index 23e3a3c2..03961266 100644 --- a/src/AnimeClient/Model/Collection.php +++ b/src/AnimeClient/Model/Collection.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Model/DB.php b/src/AnimeClient/Model/DB.php index 7b99aafb..8426a4cf 100644 --- a/src/AnimeClient/Model/DB.php +++ b/src/AnimeClient/Model/DB.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Model/Manga.php b/src/AnimeClient/Model/Manga.php index 3ef516ad..4cd66cff 100644 --- a/src/AnimeClient/Model/Manga.php +++ b/src/AnimeClient/Model/Manga.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Model/MediaTrait.php b/src/AnimeClient/Model/MediaTrait.php index 57ed4109..9e83c36d 100644 --- a/src/AnimeClient/Model/MediaTrait.php +++ b/src/AnimeClient/Model/MediaTrait.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Model/Settings.php b/src/AnimeClient/Model/Settings.php index 11923be6..e32e221b 100644 --- a/src/AnimeClient/Model/Settings.php +++ b/src/AnimeClient/Model/Settings.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/RoutingBase.php b/src/AnimeClient/RoutingBase.php index 15c216b4..169c75c3 100644 --- a/src/AnimeClient/RoutingBase.php +++ b/src/AnimeClient/RoutingBase.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/AbstractType.php b/src/AnimeClient/Types/AbstractType.php index d5ca3146..ae0dc76d 100644 --- a/src/AnimeClient/Types/AbstractType.php +++ b/src/AnimeClient/Types/AbstractType.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/Anime.php b/src/AnimeClient/Types/Anime.php index 29846f54..0b3e6a80 100644 --- a/src/AnimeClient/Types/Anime.php +++ b/src/AnimeClient/Types/Anime.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/AnimeListItem.php b/src/AnimeClient/Types/AnimeListItem.php index c10ffd63..fc8e9a88 100644 --- a/src/AnimeClient/Types/AnimeListItem.php +++ b/src/AnimeClient/Types/AnimeListItem.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/AnimePage.php b/src/AnimeClient/Types/AnimePage.php index abc78eb8..0af6a513 100644 --- a/src/AnimeClient/Types/AnimePage.php +++ b/src/AnimeClient/Types/AnimePage.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/Character.php b/src/AnimeClient/Types/Character.php index d231b571..da6c34af 100644 --- a/src/AnimeClient/Types/Character.php +++ b/src/AnimeClient/Types/Character.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/Characters.php b/src/AnimeClient/Types/Characters.php index 812a7b2b..73306fb9 100644 --- a/src/AnimeClient/Types/Characters.php +++ b/src/AnimeClient/Types/Characters.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/Config.php b/src/AnimeClient/Types/Config.php index 28468257..84953195 100644 --- a/src/AnimeClient/Types/Config.php +++ b/src/AnimeClient/Types/Config.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/Config/Anilist.php b/src/AnimeClient/Types/Config/Anilist.php index 0e0cb829..a39d8d8d 100644 --- a/src/AnimeClient/Types/Config/Anilist.php +++ b/src/AnimeClient/Types/Config/Anilist.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/Config/Cache.php b/src/AnimeClient/Types/Config/Cache.php index b1c9d74e..a4c0163a 100644 --- a/src/AnimeClient/Types/Config/Cache.php +++ b/src/AnimeClient/Types/Config/Cache.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/Config/Database.php b/src/AnimeClient/Types/Config/Database.php index 7e1176dc..839d8a26 100644 --- a/src/AnimeClient/Types/Config/Database.php +++ b/src/AnimeClient/Types/Config/Database.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/FormItem.php b/src/AnimeClient/Types/FormItem.php index 9f9b8ea0..0341bbf1 100644 --- a/src/AnimeClient/Types/FormItem.php +++ b/src/AnimeClient/Types/FormItem.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/FormItemData.php b/src/AnimeClient/Types/FormItemData.php index aec33176..5cfb8cd8 100644 --- a/src/AnimeClient/Types/FormItemData.php +++ b/src/AnimeClient/Types/FormItemData.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/HistoryItem.php b/src/AnimeClient/Types/HistoryItem.php index 9ee925da..6ec12a64 100644 --- a/src/AnimeClient/Types/HistoryItem.php +++ b/src/AnimeClient/Types/HistoryItem.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/MangaListItem.php b/src/AnimeClient/Types/MangaListItem.php index 2d5ec8af..8ce67ae7 100644 --- a/src/AnimeClient/Types/MangaListItem.php +++ b/src/AnimeClient/Types/MangaListItem.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/MangaListItemDetail.php b/src/AnimeClient/Types/MangaListItemDetail.php index 3710eaf6..bc857ab1 100644 --- a/src/AnimeClient/Types/MangaListItemDetail.php +++ b/src/AnimeClient/Types/MangaListItemDetail.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/MangaPage.php b/src/AnimeClient/Types/MangaPage.php index f5ccce5c..9fa0de6f 100644 --- a/src/AnimeClient/Types/MangaPage.php +++ b/src/AnimeClient/Types/MangaPage.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/Media.php b/src/AnimeClient/Types/Media.php index 8f2375d3..c81d8daa 100644 --- a/src/AnimeClient/Types/Media.php +++ b/src/AnimeClient/Types/Media.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/Person.php b/src/AnimeClient/Types/Person.php index 9af0598b..3a40336a 100644 --- a/src/AnimeClient/Types/Person.php +++ b/src/AnimeClient/Types/Person.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/UndefinedPropertyException.php b/src/AnimeClient/Types/UndefinedPropertyException.php index e0ac256d..f2f3f6bd 100644 --- a/src/AnimeClient/Types/UndefinedPropertyException.php +++ b/src/AnimeClient/Types/UndefinedPropertyException.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Types/User.php b/src/AnimeClient/Types/User.php index 9f8a84e6..2bdd24ac 100644 --- a/src/AnimeClient/Types/User.php +++ b/src/AnimeClient/Types/User.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/UrlGenerator.php b/src/AnimeClient/UrlGenerator.php index ab94dc52..fb827732 100644 --- a/src/AnimeClient/UrlGenerator.php +++ b/src/AnimeClient/UrlGenerator.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/Util.php b/src/AnimeClient/Util.php index 98253c21..dd4faa27 100644 --- a/src/AnimeClient/Util.php +++ b/src/AnimeClient/Util.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/AnimeClient/constants.php b/src/AnimeClient/constants.php index bf7ae29b..16858125 100644 --- a/src/AnimeClient/constants.php +++ b/src/AnimeClient/constants.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Config.php b/src/Ion/Config.php index d806f890..4680611a 100644 --- a/src/Ion/Config.php +++ b/src/Ion/Config.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/ConfigInterface.php b/src/Ion/ConfigInterface.php index bdf0bc59..2b3f170d 100644 --- a/src/Ion/ConfigInterface.php +++ b/src/Ion/ConfigInterface.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Di/Container.php b/src/Ion/Di/Container.php index ab8531b1..68366e1e 100644 --- a/src/Ion/Di/Container.php +++ b/src/Ion/Di/Container.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Di/ContainerAware.php b/src/Ion/Di/ContainerAware.php index 37cf7e56..3fcbe9da 100644 --- a/src/Ion/Di/ContainerAware.php +++ b/src/Ion/Di/ContainerAware.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Di/ContainerAwareInterface.php b/src/Ion/Di/ContainerAwareInterface.php index 6714e9bc..f4b8e467 100644 --- a/src/Ion/Di/ContainerAwareInterface.php +++ b/src/Ion/Di/ContainerAwareInterface.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Di/ContainerInterface.php b/src/Ion/Di/ContainerInterface.php index 9e7740ef..19e70bd8 100644 --- a/src/Ion/Di/ContainerInterface.php +++ b/src/Ion/Di/ContainerInterface.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Di/Exception/ContainerException.php b/src/Ion/Di/Exception/ContainerException.php index 33250bc9..09f3579b 100644 --- a/src/Ion/Di/Exception/ContainerException.php +++ b/src/Ion/Di/Exception/ContainerException.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Di/Exception/NotFoundException.php b/src/Ion/Di/Exception/NotFoundException.php index e274a042..996a9d81 100644 --- a/src/Ion/Di/Exception/NotFoundException.php +++ b/src/Ion/Di/Exception/NotFoundException.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Enum.php b/src/Ion/Enum.php index 8e463e55..469cbe29 100644 --- a/src/Ion/Enum.php +++ b/src/Ion/Enum.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Event.php b/src/Ion/Event.php index e8efcac2..028a726c 100644 --- a/src/Ion/Event.php +++ b/src/Ion/Event.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Exception/ConfigException.php b/src/Ion/Exception/ConfigException.php index cb0908a7..cd117139 100644 --- a/src/Ion/Exception/ConfigException.php +++ b/src/Ion/Exception/ConfigException.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Exception/DoubleRenderException.php b/src/Ion/Exception/DoubleRenderException.php index 8ec7ec5a..33c26e98 100644 --- a/src/Ion/Exception/DoubleRenderException.php +++ b/src/Ion/Exception/DoubleRenderException.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Friend.php b/src/Ion/Friend.php index 3f694099..2c3acfb4 100644 --- a/src/Ion/Friend.php +++ b/src/Ion/Friend.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Json.php b/src/Ion/Json.php index dd8d20ff..680943d1 100644 --- a/src/Ion/Json.php +++ b/src/Ion/Json.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/JsonException.php b/src/Ion/JsonException.php index 0554bcee..d05674c3 100644 --- a/src/Ion/JsonException.php +++ b/src/Ion/JsonException.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Model.php b/src/Ion/Model.php index 60c582b2..0d5b7c1e 100644 --- a/src/Ion/Model.php +++ b/src/Ion/Model.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Transformer/AbstractTransformer.php b/src/Ion/Transformer/AbstractTransformer.php index 65d467f3..654b3175 100644 --- a/src/Ion/Transformer/AbstractTransformer.php +++ b/src/Ion/Transformer/AbstractTransformer.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Transformer/TransformerInterface.php b/src/Ion/Transformer/TransformerInterface.php index fcc8771b..fa74120d 100644 --- a/src/Ion/Transformer/TransformerInterface.php +++ b/src/Ion/Transformer/TransformerInterface.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Type/ArrayType.php b/src/Ion/Type/ArrayType.php index 7ade54e6..1b2bcf9c 100644 --- a/src/Ion/Type/ArrayType.php +++ b/src/Ion/Type/ArrayType.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/Type/StringType.php b/src/Ion/Type/StringType.php index b66ca95d..e028e687 100644 --- a/src/Ion/Type/StringType.php +++ b/src/Ion/Type/StringType.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/View/HtmlView.php b/src/Ion/View/HtmlView.php index e208ff45..fdb93448 100644 --- a/src/Ion/View/HtmlView.php +++ b/src/Ion/View/HtmlView.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/View/HttpView.php b/src/Ion/View/HttpView.php index b2586118..af05aa43 100644 --- a/src/Ion/View/HttpView.php +++ b/src/Ion/View/HttpView.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/View/JsonView.php b/src/Ion/View/JsonView.php index c254a4fa..47aff230 100644 --- a/src/Ion/View/JsonView.php +++ b/src/Ion/View/JsonView.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/ViewInterface.php b/src/Ion/ViewInterface.php index 3e307d3f..fd2e899b 100644 --- a/src/Ion/ViewInterface.php +++ b/src/Ion/ViewInterface.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/src/Ion/functions.php b/src/Ion/functions.php index 504b1336..784eae20 100644 --- a/src/Ion/functions.php +++ b/src/Ion/functions.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/API/APIRequestBuilderTest.php b/tests/AnimeClient/API/APIRequestBuilderTest.php index ef2d6463..0d14a4a9 100644 --- a/tests/AnimeClient/API/APIRequestBuilderTest.php +++ b/tests/AnimeClient/API/APIRequestBuilderTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/API/CacheTraitTest.php b/tests/AnimeClient/API/CacheTraitTest.php index 6eb408c3..7acb424e 100644 --- a/tests/AnimeClient/API/CacheTraitTest.php +++ b/tests/AnimeClient/API/CacheTraitTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/API/Kitsu/ModelTest.php b/tests/AnimeClient/API/Kitsu/ModelTest.php index a4ed7a49..89befb47 100644 --- a/tests/AnimeClient/API/Kitsu/ModelTest.php +++ b/tests/AnimeClient/API/Kitsu/ModelTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/API/Kitsu/Transformer/AnimeListTransformerTest.php b/tests/AnimeClient/API/Kitsu/Transformer/AnimeListTransformerTest.php index bee7b320..bdec48b7 100644 --- a/tests/AnimeClient/API/Kitsu/Transformer/AnimeListTransformerTest.php +++ b/tests/AnimeClient/API/Kitsu/Transformer/AnimeListTransformerTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/API/Kitsu/Transformer/AnimeTransformerTest.php b/tests/AnimeClient/API/Kitsu/Transformer/AnimeTransformerTest.php index ee17a20e..a80cbaf3 100644 --- a/tests/AnimeClient/API/Kitsu/Transformer/AnimeTransformerTest.php +++ b/tests/AnimeClient/API/Kitsu/Transformer/AnimeTransformerTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/API/Kitsu/Transformer/MangaListTransformerTest.php b/tests/AnimeClient/API/Kitsu/Transformer/MangaListTransformerTest.php index 40eb7b89..7d6bfa6f 100644 --- a/tests/AnimeClient/API/Kitsu/Transformer/MangaListTransformerTest.php +++ b/tests/AnimeClient/API/Kitsu/Transformer/MangaListTransformerTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/API/Kitsu/Transformer/MangaTransformerTest.php b/tests/AnimeClient/API/Kitsu/Transformer/MangaTransformerTest.php index 298476aa..e8a73385 100644 --- a/tests/AnimeClient/API/Kitsu/Transformer/MangaTransformerTest.php +++ b/tests/AnimeClient/API/Kitsu/Transformer/MangaTransformerTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/API/ParallelAPIRequestTest.php b/tests/AnimeClient/API/ParallelAPIRequestTest.php index 3cc98417..9093d9c1 100644 --- a/tests/AnimeClient/API/ParallelAPIRequestTest.php +++ b/tests/AnimeClient/API/ParallelAPIRequestTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/AnimeClientTest.php b/tests/AnimeClient/AnimeClientTest.php index 41a4937b..d4d9361f 100644 --- a/tests/AnimeClient/AnimeClientTest.php +++ b/tests/AnimeClient/AnimeClientTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/AnimeClientTestCase.php b/tests/AnimeClient/AnimeClientTestCase.php index 33471b6f..1ddc1f0d 100644 --- a/tests/AnimeClient/AnimeClientTestCase.php +++ b/tests/AnimeClient/AnimeClientTestCase.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/Command/BaseCommandTest.php b/tests/AnimeClient/Command/BaseCommandTest.php index 900c12e8..334e4d8a 100644 --- a/tests/AnimeClient/Command/BaseCommandTest.php +++ b/tests/AnimeClient/Command/BaseCommandTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/ControllerTest.php b/tests/AnimeClient/ControllerTest.php index 723c38be..246ca05b 100644 --- a/tests/AnimeClient/ControllerTest.php +++ b/tests/AnimeClient/ControllerTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/DispatcherTest.php b/tests/AnimeClient/DispatcherTest.php index 0c7446e7..98bd58cd 100644 --- a/tests/AnimeClient/DispatcherTest.php +++ b/tests/AnimeClient/DispatcherTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/FormGeneratorTest.php b/tests/AnimeClient/FormGeneratorTest.php index fae6980e..7228e7c9 100644 --- a/tests/AnimeClient/FormGeneratorTest.php +++ b/tests/AnimeClient/FormGeneratorTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/Helper/MenuHelperTest.php b/tests/AnimeClient/Helper/MenuHelperTest.php index e405fbb8..c38caff0 100644 --- a/tests/AnimeClient/Helper/MenuHelperTest.php +++ b/tests/AnimeClient/Helper/MenuHelperTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/Helper/PictureHelperTest.php b/tests/AnimeClient/Helper/PictureHelperTest.php index e91e4d93..a2e861ab 100644 --- a/tests/AnimeClient/Helper/PictureHelperTest.php +++ b/tests/AnimeClient/Helper/PictureHelperTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/KitsuTest.php b/tests/AnimeClient/KitsuTest.php index 7fe0a671..a75e0aaa 100644 --- a/tests/AnimeClient/KitsuTest.php +++ b/tests/AnimeClient/KitsuTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/MenuGeneratorTest.php b/tests/AnimeClient/MenuGeneratorTest.php index 254fff50..671a796a 100644 --- a/tests/AnimeClient/MenuGeneratorTest.php +++ b/tests/AnimeClient/MenuGeneratorTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/RequirementsTest.php b/tests/AnimeClient/RequirementsTest.php index 6cb3d622..71ae8289 100644 --- a/tests/AnimeClient/RequirementsTest.php +++ b/tests/AnimeClient/RequirementsTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/RoutingBaseTest.php b/tests/AnimeClient/RoutingBaseTest.php index 5de4114e..92f23f1a 100644 --- a/tests/AnimeClient/RoutingBaseTest.php +++ b/tests/AnimeClient/RoutingBaseTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/TestSessionHandler.php b/tests/AnimeClient/TestSessionHandler.php index 658308f4..aea3bbe4 100644 --- a/tests/AnimeClient/TestSessionHandler.php +++ b/tests/AnimeClient/TestSessionHandler.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/UrlGeneratorTest.php b/tests/AnimeClient/UrlGeneratorTest.php index ab388d91..796a6359 100644 --- a/tests/AnimeClient/UrlGeneratorTest.php +++ b/tests/AnimeClient/UrlGeneratorTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/AnimeClient/UtilTest.php b/tests/AnimeClient/UtilTest.php index 083b518e..23051551 100644 --- a/tests/AnimeClient/UtilTest.php +++ b/tests/AnimeClient/UtilTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/BaseModelTest.php b/tests/Ion/BaseModelTest.php index 8a54a316..c321b07a 100644 --- a/tests/Ion/BaseModelTest.php +++ b/tests/Ion/BaseModelTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/ConfigTest.php b/tests/Ion/ConfigTest.php index b20b37b3..428a0a62 100644 --- a/tests/Ion/ConfigTest.php +++ b/tests/Ion/ConfigTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/Di/ContainerAwareTest.php b/tests/Ion/Di/ContainerAwareTest.php index 69ec331d..847d9299 100644 --- a/tests/Ion/Di/ContainerAwareTest.php +++ b/tests/Ion/Di/ContainerAwareTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/Di/ContainerTest.php b/tests/Ion/Di/ContainerTest.php index 17a6058c..9ec542ca 100644 --- a/tests/Ion/Di/ContainerTest.php +++ b/tests/Ion/Di/ContainerTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/EnumTest.php b/tests/Ion/EnumTest.php index 79fc02cc..69ecb125 100644 --- a/tests/Ion/EnumTest.php +++ b/tests/Ion/EnumTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/EventTest.php b/tests/Ion/EventTest.php index 1741c382..f46f194c 100644 --- a/tests/Ion/EventTest.php +++ b/tests/Ion/EventTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/Exception/DoubleRenderExceptionTest.php b/tests/Ion/Exception/DoubleRenderExceptionTest.php index cc4731de..8b554328 100644 --- a/tests/Ion/Exception/DoubleRenderExceptionTest.php +++ b/tests/Ion/Exception/DoubleRenderExceptionTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/FriendTest.php b/tests/Ion/FriendTest.php index b34c8379..2761b36c 100644 --- a/tests/Ion/FriendTest.php +++ b/tests/Ion/FriendTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/IonTestCase.php b/tests/Ion/IonTestCase.php index ec62676c..b4694eb2 100644 --- a/tests/Ion/IonTestCase.php +++ b/tests/Ion/IonTestCase.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/JsonTest.php b/tests/Ion/JsonTest.php index d01dda68..e70b9f17 100644 --- a/tests/Ion/JsonTest.php +++ b/tests/Ion/JsonTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/TestSessionHandler.php b/tests/Ion/TestSessionHandler.php index 8681e019..8db1f7bf 100644 --- a/tests/Ion/TestSessionHandler.php +++ b/tests/Ion/TestSessionHandler.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/Transformer/AbstractTransformerTest.php b/tests/Ion/Transformer/AbstractTransformerTest.php index 1b742cd3..7b89ca56 100644 --- a/tests/Ion/Transformer/AbstractTransformerTest.php +++ b/tests/Ion/Transformer/AbstractTransformerTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/Type/ArrayTypeTest.php b/tests/Ion/Type/ArrayTypeTest.php index ecf457bb..2f54dc34 100644 --- a/tests/Ion/Type/ArrayTypeTest.php +++ b/tests/Ion/Type/ArrayTypeTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/Type/StringTypeTest.php b/tests/Ion/Type/StringTypeTest.php index 1bd2a7bd..95612a56 100644 --- a/tests/Ion/Type/StringTypeTest.php +++ b/tests/Ion/Type/StringTypeTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/View/HtmlViewTest.php b/tests/Ion/View/HtmlViewTest.php index 4d9ea1a8..e297a50d 100644 --- a/tests/Ion/View/HtmlViewTest.php +++ b/tests/Ion/View/HtmlViewTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/View/HttpViewTest.php b/tests/Ion/View/HttpViewTest.php index 3d276bd3..b485b833 100644 --- a/tests/Ion/View/HttpViewTest.php +++ b/tests/Ion/View/HttpViewTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/View/JsonViewTest.php b/tests/Ion/View/JsonViewTest.php index 2eb6a22e..5882fb44 100644 --- a/tests/Ion/View/JsonViewTest.php +++ b/tests/Ion/View/JsonViewTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/functionsTest.php b/tests/Ion/functionsTest.php index 9d97db08..6009e61b 100644 --- a/tests/Ion/functionsTest.php +++ b/tests/Ion/functionsTest.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ diff --git a/tests/Ion/mocks.php b/tests/Ion/mocks.php index 4a33a02b..a77ad77f 100644 --- a/tests/Ion/mocks.php +++ b/tests/Ion/mocks.php @@ -4,13 +4,13 @@ * * An API client for Kitsu to manage anime and manga watch lists * - * PHP version 7.4 + * PHP version 7.4+ * * @package HummingbirdAnimeClient * @author Timothy J. Warren * @copyright 2015 - 2020 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 + * @version 5.2 * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient */ -- 2.43.2 From 05c7fa1a3e5560f1684f8df53c93d734d863da1f Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 11 Dec 2020 10:14:59 -0500 Subject: [PATCH 06/14] Update dependencies --- build/phpunit.xml | 52 ++++++++++++++++++++++------------------------- composer.json | 15 +++++++------- phpunit.xml | 42 +++++++++++++++++--------------------- 3 files changed, 50 insertions(+), 59 deletions(-) diff --git a/build/phpunit.xml b/build/phpunit.xml index 339f7750..c9cc1c97 100644 --- a/build/phpunit.xml +++ b/build/phpunit.xml @@ -1,29 +1,25 @@ - - - - ../src - - - - - ../tests - - - - - - - - - - - - - - \ No newline at end of file + + + + ../src + + + + + + + + + ../tests + + + + + + + + + + + diff --git a/composer.json b/composer.json index 46b5f80a..3c5c4e72 100644 --- a/composer.json +++ b/composer.json @@ -48,6 +48,7 @@ "ext-json": "*", "ext-gd": "*", "ext-pdo": "*", + "filp/whoops": "^2.1", "laminas/laminas-diactoros": "^2.2.3", "laminas/laminas-httphandlerrunner": "^1.1.0", "maximebf/consolekit": "^1.0.3", @@ -56,23 +57,21 @@ "psr/container": "^1.0.0", "psr/http-message": "^1.0.1", "psr/log": "^1.1.3", + "robmorgan/phinx": "^0.12.4", + "symfony/var-dumper": "^5.0.7", "yosymfony/toml": "^1.0.4" }, "require-dev": { "consolidation/robo": "^2.0.0", - "filp/whoops": "^2.1", "pdepend/pdepend": "^2.", - "phploc/phploc": "^5.0.0", + "phploc/phploc": "^7.0.0", "phpmd/phpmd": "^2.8.2", "phpstan/phpstan": "^0.12.19", - "phpunit/phpunit": "^8.5.2", + "phpunit/phpunit": "^9.5.0", "roave/security-advisories": "dev-master", - "robmorgan/phinx": "^0.12.4", - "sebastian/phpcpd": "^4.1.0", + "sebastian/phpcpd": "^6.0.0", "spatie/phpunit-snapshot-assertions": "^4.1.0", - "squizlabs/php_codesniffer": "^3.5.4", - "symfony/var-dumper": "^5.0.7", - "theseer/phpdox": "^0.12.0" + "squizlabs/php_codesniffer": "^3.5.4" }, "scripts": { "build": "vendor/bin/robo build", diff --git a/phpunit.xml b/phpunit.xml index 476b10c8..bfdc1c81 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,24 +1,20 @@ - - - - src - - - - - tests - - - - - - - - - - \ No newline at end of file + + + + src + + + + + tests + + + + + + + + + + -- 2.43.2 From 2a8e6aa3edff36c4117494416ba831fdb6557667 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 11 Dec 2020 10:15:24 -0500 Subject: [PATCH 07/14] Fix anime collection error --- src/AnimeClient/Controller/AnimeCollection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AnimeClient/Controller/AnimeCollection.php b/src/AnimeClient/Controller/AnimeCollection.php index 30950ed2..482901e7 100644 --- a/src/AnimeClient/Controller/AnimeCollection.php +++ b/src/AnimeClient/Controller/AnimeCollection.php @@ -88,13 +88,13 @@ final class AnimeCollection extends BaseController { /** * Show the anime collection page * - * @param string $view + * @param string|null $view * @throws ContainerException * @throws NotFoundException * @throws InvalidArgumentException * @return void */ - public function view(string $view = ''): void + public function view(?string $view = ''): void { $viewMap = [ '' => 'cover', -- 2.43.2 From 9d82154b2f4562305a3290d20fe92f0bc3682835 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 11 Dec 2020 10:26:24 -0500 Subject: [PATCH 08/14] Make sure to run tests for PHP8 --- Jenkinsfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c94da53f..5a3d9d60 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,19 @@ pipeline { stage('PHP 7.4') { agent { docker { - image 'php:7.4-alpine' + image 'php:7.4-cli-alpine' + args '-u root --privileged' + } + } + steps { + sh 'apk add --no-cache git' + sh 'php ./vendor/bin/phpunit --colors=never' + } + } + stage('PHP 8') { + agent { + docker { + image 'php:8-cli-alpine' args '-u root --privileged' } } @@ -25,7 +37,7 @@ pipeline { stage('Latest PHP') { agent { docker { - image 'php:alpine' + image 'php:cli-alpine' args '-u root --privileged' } } -- 2.43.2 From dee4a2dad50bb5de8dcf4099530ae222d5a5a35b Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 11 Dec 2020 14:26:54 -0500 Subject: [PATCH 09/14] Fix tests for PHP8...? --- app/bootstrap.php | 26 +++++++++---------- app/views/main-menu.php | 6 ++--- composer.json | 4 +-- console | 2 +- frontEndSrc/test/ajax.php | 2 +- phpunit.xml | 5 +++- src/AnimeClient/Command/BaseCommand.php | 2 +- src/AnimeClient/FormGenerator.php | 5 ++-- src/AnimeClient/Types/Config.php | 20 +++++++------- src/AnimeClient/Types/Config/Anilist.php | 5 +++- src/AnimeClient/Types/Config/Cache.php | 11 +------- tests/AnimeClient/AnimeClientTestCase.php | 4 +-- tests/AnimeClient/ControllerTest.php | 4 +-- tests/AnimeClient/DispatcherTest.php | 4 +-- tests/AnimeClient/FormGeneratorTest.php | 20 ++------------ .../FormGeneratorTest__testGeneration__12.txt | 2 +- .../FormGeneratorTest__testGeneration__13.txt | 2 +- .../FormGeneratorTest__testGeneration__19.txt | 2 +- .../FormGeneratorTest__testGeneration__25.txt | 2 +- .../FormGeneratorTest__testGeneration__6.txt | 2 +- tests/Ion/IonTestCase.php | 2 +- tests/Ion/di.php | 2 +- 22 files changed, 58 insertions(+), 76 deletions(-) diff --git a/app/bootstrap.php b/app/bootstrap.php index fe1f461c..7dfcd4ae 100644 --- a/app/bootstrap.php +++ b/app/bootstrap.php @@ -67,7 +67,7 @@ return static function (array $configArray = []): Container { // ------------------------------------------------------------------------- // Create Config Object - $container->set('config', fn () => new Config($configArray)); + $container->set('config', static fn () => new Config($configArray)); // Create Cache Object $container->set('cache', static function(ContainerInterface $container): CacheInterface { @@ -77,7 +77,7 @@ return static function (array $configArray = []): Container { }); // Create Aura Router Object - $container->set('aura-router', fn() => new RouterContainer); + $container->set('aura-router', static fn() => new RouterContainer); // Create Html helpers $container->set('html-helper', static function(ContainerInterface $container) { @@ -125,8 +125,8 @@ return static function (array $configArray = []): Container { }); // Create Request Object - $container->set('request', fn () => ServerRequestFactory::fromGlobals( - $_SERVER, + $container->set('request', static fn () => ServerRequestFactory::fromGlobals( + $GLOBALS['_SERVER'], $_GET, $_POST, $_COOKIE, @@ -134,10 +134,10 @@ return static function (array $configArray = []): Container { )); // Create session Object - $container->set('session', fn () => (new SessionFactory())->newInstance($_COOKIE)); + $container->set('session', static fn () => (new SessionFactory())->newInstance($_COOKIE)); // Miscellaneous helper methods - $container->set('util', fn ($container) => new Util($container)); + $container->set('util', static fn ($container) => new Util($container)); // Models $container->set('kitsu-model', static function(ContainerInterface $container): Kitsu\Model { @@ -170,10 +170,10 @@ return static function (array $configArray = []): Container { return $model; }); - $container->set('anime-model', fn ($container) => new Model\Anime($container)); - $container->set('manga-model', fn ($container) => new Model\Manga($container)); - $container->set('anime-collection-model', fn ($container) => new Model\AnimeCollection($container)); - $container->set('manga-collection-model', fn ($container) => new Model\MangaCollection($container)); + $container->set('anime-model', static fn ($container) => new Model\Anime($container)); + $container->set('manga-model', static fn ($container) => new Model\Manga($container)); + $container->set('anime-collection-model', static fn ($container) => new Model\AnimeCollection($container)); + $container->set('manga-collection-model', static fn ($container) => new Model\MangaCollection($container)); $container->set('settings-model', static function($container) { $model = new Model\Settings($container->get('config')); $model->setContainer($container); @@ -181,13 +181,13 @@ return static function (array $configArray = []): Container { }); // Miscellaneous Classes - $container->set('auth', fn ($container) => new Kitsu\Auth($container)); - $container->set('url-generator', fn ($container) => new UrlGenerator($container)); + $container->set('auth', static fn ($container) => new Kitsu\Auth($container)); + $container->set('url-generator', static fn ($container) => new UrlGenerator($container)); // ------------------------------------------------------------------------- // Dispatcher // ------------------------------------------------------------------------- - $container->set('dispatcher', fn ($container) => new Dispatcher($container)); + $container->set('dispatcher', static fn ($container) => new Dispatcher($container)); return $container; }; diff --git a/app/views/main-menu.php b/app/views/main-menu.php index 39d68032..c6b45276 100644 --- a/app/views/main-menu.php +++ b/app/views/main-menu.php @@ -5,8 +5,8 @@ namespace Aviat\AnimeClient; $whose = $config->get('whose_list') . "'s "; $lastSegment = $urlGenerator->lastSegment(); $extraSegment = $lastSegment === 'list' ? '/list' : ''; -$hasAnime = stripos($_SERVER['REQUEST_URI'], 'anime') !== FALSE; -$hasManga = stripos($_SERVER['REQUEST_URI'], 'manga') !== FALSE; +$hasAnime = stripos($GLOBALS['_SERVER']['REQUEST_URI'], 'anime') !== FALSE; +$hasManga = stripos($GLOBALS['_SERVER']['REQUEST_URI'], 'manga') !== FALSE; ?>
- +
diff --git a/src/AnimeClient/API/APIRequestBuilder.php b/src/AnimeClient/API/APIRequestBuilder.php index 9d2be323..bda3c4e1 100644 --- a/src/AnimeClient/API/APIRequestBuilder.php +++ b/src/AnimeClient/API/APIRequestBuilder.php @@ -35,43 +35,36 @@ abstract class APIRequestBuilder { /** * Where to look for GraphQL request files - * @var string */ - protected string $filePath = __DIR__; + protected string $filePath = ''; /** * Url prefix for making url requests - * @var string */ protected string $baseUrl = ''; /** * Url path of the request - * @var string */ protected string $path = ''; /** * Query string for the request - * @var string */ protected string $query = ''; /** * Default request headers - * @var array */ protected array $defaultHeaders = []; /** * Valid HTTP request methods - * @var array */ protected array $validMethods = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS']; /** * The current request - * @var Request */ protected Request $request; @@ -309,7 +302,7 @@ abstract class APIRequestBuilder { */ public function queryRequest(string $name, array $variables = []): Request { - $file = "{$this->filePath}/Queries/{$name}.graphql"; + $file = realpath("{$this->filePath}/Queries/{$name}.graphql"); if ( ! file_exists($file)) { throw new LogicException('GraphQL query file does not exist.'); diff --git a/src/AnimeClient/AnimeClient.php b/src/AnimeClient/AnimeClient.php index a9b9bbf1..72f05bf8 100644 --- a/src/AnimeClient/AnimeClient.php +++ b/src/AnimeClient/AnimeClient.php @@ -19,7 +19,6 @@ namespace Aviat\AnimeClient; use Aviat\AnimeClient\Kitsu; use Psr\SimpleCache\CacheInterface; use Psr\SimpleCache\InvalidArgumentException; -use function Amp\Promise\wait; use Amp\Http\Client\Request; use Amp\Http\Client\Response; @@ -31,6 +30,8 @@ use Yosymfony\Toml\{Toml, TomlBuilder}; use Throwable; +use function Amp\Promise\wait; +use function Aviat\Ion\_dir; // ---------------------------------------------------------------------------- //! TOML Functions // ---------------------------------------------------------------------------- @@ -180,9 +181,11 @@ function checkFolderPermissions(ConfigInterface $config): array $errors = []; $publicDir = $config->get('asset_dir'); + $APP_DIR = _dir(dirname(__DIR__, 2), '/app'); + $pathMap = [ - 'app/config' => realpath(__DIR__ . '/../../app/config'), - 'app/logs' => realpath(__DIR__ . '/../../app/logs'), + 'app/config' => "{$APP_DIR}/config", + 'app/logs' => "{$APP_DIR}/logs", 'public/images/avatars' => "{$publicDir}/images/avatars", 'public/images/anime' => "{$publicDir}/images/anime", 'public/images/characters' => "{$publicDir}/images/characters", @@ -285,11 +288,11 @@ function getLocalImg (string $kitsuUrl, $webp = TRUE): string * Create a transparent placeholder image * * @param string $path - * @param int $width - * @param int $height + * @param int|null $width + * @param int|null $height * @param string $text */ -function createPlaceholderImage ($path, ?int $width, ?int $height, $text = 'Image Unavailable'): void +function createPlaceholderImage (string $path, ?int $width, ?int $height, $text = 'Image Unavailable'): void { $width = $width ?? 200; $height = $height ?? 200; diff --git a/src/AnimeClient/Dispatcher.php b/src/AnimeClient/Dispatcher.php index 072e7c5e..d0e67e37 100644 --- a/src/AnimeClient/Dispatcher.php +++ b/src/AnimeClient/Dispatcher.php @@ -268,7 +268,7 @@ final class Dispatcher extends RoutingBase { * @param array $params * @return void */ - protected function call($controllerName, $method, array $params): void + protected function call(string $controllerName, string $method, array $params): void { $logger = $this->container->getLogger('default'); @@ -282,7 +282,7 @@ final class Dispatcher extends RoutingBase { $logger->debug('Dispatcher - controller arguments', $params); } - call_user_func_array([$controller, $method], $params); + call_user_func_array([$controller, $method], array_values($params)); } catch (FailedResponseException $e) { @@ -388,21 +388,21 @@ final class Dispatcher extends RoutingBase { $route['controller'] = $controllerClass; // Select the appropriate router method based on the http verb - $add = array_key_exists('verb', $route) + $verb = array_key_exists('verb', $route) ? strtolower($route['verb']) : 'get'; // Add the route to the router object if ( ! array_key_exists('tokens', $route)) { - $routes[] = $this->router->$add($name, $path)->defaults($route); + $routes[] = $this->router->$verb($name, $path)->defaults($route); continue; } $tokens = $route['tokens']; unset($route['tokens']); - $routes[] = $this->router->$add($name, $path) + $routes[] = $this->router->$verb($name, $path) ->defaults($route) ->tokens($tokens); } diff --git a/src/AnimeClient/Kitsu.php b/src/AnimeClient/Kitsu.php index 2f92de9b..48f71c56 100644 --- a/src/AnimeClient/Kitsu.php +++ b/src/AnimeClient/Kitsu.php @@ -418,6 +418,11 @@ final class Kitsu { */ private static function titleIsUnique(string $title = '', array $existingTitles = []): bool { + if (empty($title)) + { + return FALSE; + } + foreach($existingTitles as $existing) { $isSubset = mb_substr_count($existing, $title) > 0; diff --git a/src/AnimeClient/constants.php b/src/AnimeClient/constants.php index 0206d6a6..813a1210 100644 --- a/src/AnimeClient/constants.php +++ b/src/AnimeClient/constants.php @@ -24,7 +24,7 @@ const ERROR_MESSAGE_METHOD = 'errorPage'; const NOT_FOUND_METHOD = 'notFound'; const SESSION_SEGMENT = 'Aviat\AnimeClient\Auth'; const SRC_DIR = __DIR__; -const USER_AGENT = "Tim's Anime Client/5.1"; +const USER_AGENT = "Tim's Anime Client/5.2"; // Regex patterns const ALPHA_SLUG_PATTERN = '[a-z_]+'; diff --git a/tests/bootstrap.php b/tests/bootstrap.php index f7f942a0..f7e04e67 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -10,16 +10,17 @@ if ($timezone === '' || $timezone === FALSE) ini_set('date.timezone', 'GMT'); } -define('ROOT_DIR', realpath(__DIR__ . '/../') . '/'); +define('ROOT_DIR', dirname(__DIR__) . '/'); define('SRC_DIR', ROOT_DIR . 'src/'); +define('TEST_DIR', __DIR__ . '/'); // ----------------------------------------------------------------------------- // Autoloading // ----------------------------------------------------------------------------- -require_once __DIR__ . '/AnimeClient/AnimeClientTestCase.php'; -require_once __DIR__ . '/Ion/IonTestCase.php'; -require_once __DIR__ . '/../vendor/autoload.php'; +require_once TEST_DIR . 'AnimeClient/AnimeClientTestCase.php'; +require_once TEST_DIR . '/Ion/IonTestCase.php'; +require_once ROOT_DIR . 'vendor/autoload.php'; // ----------------------------------------------------------------------------- // Ini Settings @@ -27,7 +28,7 @@ require_once __DIR__ . '/../vendor/autoload.php'; ini_set('session.use_cookies', '0'); ini_set('session.use_only_cookies', '0'); ini_set('session.use_trans_sid', '1'); -// Start session here to supress error about headers not sent +// Start session here to suppress error about headers not sent session_start(); // ----------------------------------------------------------------------------- @@ -39,7 +40,7 @@ $_SESSION = []; $_COOKIE = []; // Request base test case and mocks -require_once __DIR__ . '/AnimeClient/mocks.php'; -require_once __DIR__ . '/Ion/mocks.php'; +require_once TEST_DIR . 'AnimeClient/mocks.php'; +require_once TEST_DIR . 'Ion/mocks.php'; // End of bootstrap.php \ No newline at end of file -- 2.43.2 From 6b6c37f015f620c3dda93d2ce8a6941de0412f4b Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 3 Feb 2021 09:46:36 -0500 Subject: [PATCH 13/14] Move to PHP 8 --- composer.json | 4 ++-- src/AnimeClient/API/Kitsu/schema.graphql | 25 ++++++++++++++------- src/AnimeClient/AnimeClient.php | 2 +- src/AnimeClient/Command/BaseCommand.php | 14 +++++++----- src/AnimeClient/Command/ClearThumbnails.php | 2 +- src/AnimeClient/Controller/Anime.php | 8 ++----- src/AnimeClient/Model/Settings.php | 2 +- src/AnimeClient/Types/Config/Anilist.php | 5 ++++- 8 files changed, 37 insertions(+), 25 deletions(-) diff --git a/composer.json b/composer.json index aae5227d..315f2f16 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "config": { "lock": false, "platform": { - "php": "7.4" + "php": "8" } }, "require": { @@ -53,7 +53,7 @@ "laminas/laminas-httphandlerrunner": "^1.1.0", "maximebf/consolekit": "^1.0.3", "monolog/monolog": "^2.0.2", - "php": "^7.4 || ~8.0.0", + "php": "^8.0.0", "psr/container": "^1.0.0", "psr/http-message": "^1.0.1", "psr/log": "^1.1.3", diff --git a/src/AnimeClient/API/Kitsu/schema.graphql b/src/AnimeClient/API/Kitsu/schema.graphql index a86dacf5..3d572188 100644 --- a/src/AnimeClient/API/Kitsu/schema.graphql +++ b/src/AnimeClient/API/Kitsu/schema.graphql @@ -152,8 +152,6 @@ interface Media { "Returns the last _n_ elements from the list." last: Int ): MediaReactionConnection! - "The season this was released in" - season: ReleaseSeasonEnum "Whether the media is Safe-for-Work" sfw: Boolean! "The URL-friendly identifier of this media" @@ -1256,8 +1254,6 @@ type Manga implements Media & WithTimestamps { "Returns the last _n_ elements from the list." last: Int ): MediaReactionConnection! - "The season this was released in" - season: ReleaseSeasonEnum "Whether the media is Safe-for-Work" sfw: Boolean! "The URL-friendly identifier of this media" @@ -1475,14 +1471,14 @@ type MediaEdge { "The role a company played in the creation or localization of a media" type MediaProduction implements WithTimestamps { + "The production company" + company: Producer! createdAt: ISO8601DateTime! id: ID! "The media" media: Media! - "The producer" - person: Producer! "The role this company played" - role: String! + role: MediaProductionRoleEnum! updatedAt: ISO8601DateTime! } @@ -1997,6 +1993,8 @@ type Query { findPersonById(id: ID!): Person "Find a single Person by Slug" findPersonBySlug(slug: String!): Person + "Find a single Post by ID" + findPostById(id: ID!): Post "Find a single User by ID" findProfileById(id: ID!): Profile "Find a single User by Slug" @@ -2112,7 +2110,7 @@ type Query { last: Int, title: String! ): MangaConnection! - "Search for any media (Anime, Manga) by title using Algolia. The most relevant results will be at the top." + "Search for any media (Anime, Manga) by title using Algolia. If no media_type is supplied, it will search for both. The most relevant results will be at the top." searchMediaByTitle( "Returns the elements in the list that come after the specified cursor." after: String, @@ -2122,6 +2120,8 @@ type Query { first: Int, "Returns the last _n_ elements from the list." last: Int, + "Dynamically choose a specific media_type. If left blank, it will return results for both." + mediaType: MediaTypeEnum, title: String! ): MediaConnection! "Search for User by username using Algolia. The most relevant results will be at the top." @@ -2217,6 +2217,8 @@ type QuoteLineEdge { type Session { "The account associated with this session" account: Account + "Single sign-on token for Nolt" + noltToken: String! "The profile associated with this session" profile: Profile } @@ -2539,6 +2541,13 @@ enum MappingItemEnum { PRODUCER } +enum MediaProductionRoleEnum { + LICENSOR + PRODUCER + SERIALIZATION + STUDIO +} + "これはアニメやマンガです" enum MediaTypeEnum { ANIME diff --git a/src/AnimeClient/AnimeClient.php b/src/AnimeClient/AnimeClient.php index 72f05bf8..f67bdbdc 100644 --- a/src/AnimeClient/AnimeClient.php +++ b/src/AnimeClient/AnimeClient.php @@ -237,7 +237,7 @@ function getApiClient (): HttpClient * @return Response * @throws Throwable */ -function getResponse ($request): Response +function getResponse (Request|string $request): Response { $client = getApiClient(); diff --git a/src/AnimeClient/Command/BaseCommand.php b/src/AnimeClient/Command/BaseCommand.php index e3cdf717..af695a0c 100644 --- a/src/AnimeClient/Command/BaseCommand.php +++ b/src/AnimeClient/Command/BaseCommand.php @@ -17,6 +17,10 @@ namespace Aviat\AnimeClient\Command; use Monolog\Formatter\JsonFormatter; + +use function Aviat\Ion\_dir; +use const Aviat\AnimeClient\SRC_DIR; + use function Aviat\AnimeClient\loadConfig; use function Aviat\AnimeClient\loadTomlFile; @@ -108,14 +112,14 @@ abstract class BaseCommand extends Command { */ public function setupContainer(): ContainerInterface { - $APP_DIR = realpath(__DIR__ . '/../../../app'); - $APPCONF_DIR = realpath("{$APP_DIR}/appConf/"); - $CONF_DIR = realpath("{$APP_DIR}/config/"); - $baseConfig = require $APPCONF_DIR . '/base_config.php'; + $APP_DIR = _dir(dirname(SRC_DIR), 'app'); + $APPCONF_DIR = realpath(_dir($APP_DIR, 'appConf')); + $CONF_DIR = realpath(_dir($APP_DIR, 'config')); + $baseConfig = require _dir($APPCONF_DIR, 'base_config.php'); $config = loadConfig($CONF_DIR); - $overrideFile = $CONF_DIR . '/admin-override.toml'; + $overrideFile = _dir($CONF_DIR, 'admin-override.toml'); $overrideConfig = file_exists($overrideFile) ? loadTomlFile($overrideFile) : []; diff --git a/src/AnimeClient/Command/ClearThumbnails.php b/src/AnimeClient/Command/ClearThumbnails.php index e8a5e5c1..965ca757 100644 --- a/src/AnimeClient/Command/ClearThumbnails.php +++ b/src/AnimeClient/Command/ClearThumbnails.php @@ -29,7 +29,7 @@ class ClearThumbnails extends BaseCommand { private function clearThumbs(): void { - $imgDir = realpath(__DIR__ . '/../../public/images'); + $imgDir = dirname(__DIR__, 3) . '/public/images'; $paths = [ 'anime/*.jpg', diff --git a/src/AnimeClient/Controller/Anime.php b/src/AnimeClient/Controller/Anime.php index 3aa2f4f4..ac0c3dd6 100644 --- a/src/AnimeClient/Controller/Anime.php +++ b/src/AnimeClient/Controller/Anime.php @@ -138,8 +138,6 @@ final class Anime extends BaseController { /** * Add an anime to the list * - * @throws ContainerException - * @throws NotFoundException * @throws Throwable * @return void */ @@ -215,8 +213,6 @@ final class Anime extends BaseController { /** * Update an anime item via a form submission * - * @throws ContainerException - * @throws NotFoundException * @throws Throwable * @return void */ @@ -338,7 +334,7 @@ final class Anime extends BaseController { 'data' => $data, ]); } - catch (TypeError $e) + catch (TypeError) { $this->notFound( $this->config->get('whose_list') . @@ -376,7 +372,7 @@ final class Anime extends BaseController { 'data' => $data, ]); } - catch (TypeError $e) + catch (TypeError) { $this->notFound( $this->config->get('whose_list') . diff --git a/src/AnimeClient/Model/Settings.php b/src/AnimeClient/Model/Settings.php index 0bc70b75..9848f703 100644 --- a/src/AnimeClient/Model/Settings.php +++ b/src/AnimeClient/Model/Settings.php @@ -206,7 +206,7 @@ final class Settings { return FALSE; } - $savePath = realpath(_dir(__DIR__, '..', '..', '..', 'app', 'config')); + $savePath = _dir(dirname(__DIR__, 3), 'app', 'config'); $saveFile = _dir($savePath, 'admin-override.toml'); $saved = file_put_contents($saveFile, arrayToToml($settings)); diff --git a/src/AnimeClient/Types/Config/Anilist.php b/src/AnimeClient/Types/Config/Anilist.php index e713cc62..263cba06 100644 --- a/src/AnimeClient/Types/Config/Anilist.php +++ b/src/AnimeClient/Types/Config/Anilist.php @@ -19,7 +19,10 @@ namespace Aviat\AnimeClient\Types\Config; use Aviat\AnimeClient\Types\AbstractType; class Anilist extends AbstractType { - public bool $enabled = FALSE; + /** + * @var bool|string + */ + public $enabled = FALSE; public ?string $client_id; -- 2.43.2 From bc50ab3e0c6b0d9d8015083a79ca6e7a3319134c Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 3 Feb 2021 09:52:18 -0500 Subject: [PATCH 14/14] Update CI to PHP 8 --- .travis.yml | 7 +++---- Jenkinsfile | 12 ------------ 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index d913cc55..9b4749a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,13 +4,12 @@ install: - composer install --ignore-platform-reqs php: - - 7.4 - nightly script: - mkdir -p build/logs - php vendor/bin/phpunit -c build -matrix: - allow_failures: - - php: nightly +#matrix: +# allow_failures: +# - php: nightly diff --git a/Jenkinsfile b/Jenkinsfile index 5a3d9d60..48232ea7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,18 +10,6 @@ pipeline { sh 'php composer.phar install --ignore-platform-reqs' } } - stage('PHP 7.4') { - agent { - docker { - image 'php:7.4-cli-alpine' - args '-u root --privileged' - } - } - steps { - sh 'apk add --no-cache git' - sh 'php ./vendor/bin/phpunit --colors=never' - } - } stage('PHP 8') { agent { docker { -- 2.43.2