From 951187783be566c4295e29952d58b25217e716ff Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Wed, 11 Jan 2017 19:37:14 -0500 Subject: [PATCH] Third time's a charm for updating the header comment? --- build/header_comment.txt | 1 - src/API/AbstractListItem.php | 1 - src/API/GuzzleTrait.php | 1 - src/API/JsonAPI.php | 29 ++++++++++++++++++- src/API/Kitsu.php | 1 - src/API/Kitsu/Auth.php | 1 - src/API/Kitsu/Enum/AnimeAiringStatus.php | 1 - src/API/Kitsu/Enum/AnimeWatchingStatus.php | 1 - src/API/Kitsu/Enum/MangaReadingStatus.php | 1 - src/API/Kitsu/KitsuModel.php | 1 - src/API/Kitsu/KitsuTrait.php | 1 - src/API/Kitsu/ListItem.php | 1 - .../Transformer/AnimeListTransformer.php | 1 - .../Kitsu/Transformer/AnimeTransformer.php | 1 - .../Transformer/MangaListTransformer.php | 1 - .../Kitsu/Transformer/MangaTransformer.php | 1 - src/API/ListItemInterface.php | 1 - src/API/MAL/Auth.php | 1 - src/API/MAL/Model.php | 1 - src/Command/BaseCommand.php | 1 - src/Command/CacheImages.php | 1 - src/Command/ClearCache.php | 1 - src/Controller/Anime.php | 1 - src/Controller/Collection.php | 1 - src/Controller/Manga.php | 1 - src/Helper/Menu.php | 1 - src/Model/API.php | 1 - src/Model/Anime.php | 1 - src/Model/AnimeCollection.php | 1 - src/Model/Collection.php | 1 - src/Model/DB.php | 1 - src/Model/Manga.php | 1 - 32 files changed, 28 insertions(+), 32 deletions(-) diff --git a/build/header_comment.txt b/build/header_comment.txt index 684e98bc..91b15c5d 100644 --- a/build/header_comment.txt +++ b/build/header_comment.txt @@ -13,4 +13,3 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - diff --git a/src/API/AbstractListItem.php b/src/API/AbstractListItem.php index 0717689e..716f65f4 100644 --- a/src/API/AbstractListItem.php +++ b/src/API/AbstractListItem.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API; abstract class AbstractListItem implements ListItemInterface { diff --git a/src/API/GuzzleTrait.php b/src/API/GuzzleTrait.php index 19165856..6af78cde 100644 --- a/src/API/GuzzleTrait.php +++ b/src/API/GuzzleTrait.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API; /** diff --git a/src/API/JsonAPI.php b/src/API/JsonAPI.php index 024509d4..f2848474 100644 --- a/src/API/JsonAPI.php +++ b/src/API/JsonAPI.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API; /** @@ -41,6 +40,13 @@ class JsonAPI { */ protected $data = []; + /** + * Data array parsed out from a request + * + * @var array + */ + protected $parsedData = []; + /** * Related objects included with the request * @@ -55,6 +61,16 @@ class JsonAPI { */ protected $links = []; + /** + * JsonAPI constructor + * + * @param array $initital + */ + public function __construct(array $initial = []) + { + $this->data = $initial; + } + /** * Parse a JsonAPI response into its components * @@ -64,4 +80,15 @@ class JsonAPI { { } + + /** + * Return data array after input is parsed + * to inline includes inside of relationship objects + * + * @return array + */ + public function getParsedData(): array + { + + } } \ No newline at end of file diff --git a/src/API/Kitsu.php b/src/API/Kitsu.php index 97941696..9e0fc161 100644 --- a/src/API/Kitsu.php +++ b/src/API/Kitsu.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API; use Aviat\AnimeClient\API\Kitsu\Enum\{ diff --git a/src/API/Kitsu/Auth.php b/src/API/Kitsu/Auth.php index e9bc9ea7..c6ac74ab 100644 --- a/src/API/Kitsu/Auth.php +++ b/src/API/Kitsu/Auth.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\Kitsu; use Aviat\AnimeClient\AnimeClient; diff --git a/src/API/Kitsu/Enum/AnimeAiringStatus.php b/src/API/Kitsu/Enum/AnimeAiringStatus.php index 00113393..606d07c6 100644 --- a/src/API/Kitsu/Enum/AnimeAiringStatus.php +++ b/src/API/Kitsu/Enum/AnimeAiringStatus.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\Kitsu\Enum; use Aviat\Ion\Enum as BaseEnum; diff --git a/src/API/Kitsu/Enum/AnimeWatchingStatus.php b/src/API/Kitsu/Enum/AnimeWatchingStatus.php index 06030fe7..c517ff7d 100644 --- a/src/API/Kitsu/Enum/AnimeWatchingStatus.php +++ b/src/API/Kitsu/Enum/AnimeWatchingStatus.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\Kitsu\Enum; use Aviat\Ion\Enum as BaseEnum; diff --git a/src/API/Kitsu/Enum/MangaReadingStatus.php b/src/API/Kitsu/Enum/MangaReadingStatus.php index a93a6d95..5b1de9c7 100644 --- a/src/API/Kitsu/Enum/MangaReadingStatus.php +++ b/src/API/Kitsu/Enum/MangaReadingStatus.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\Kitsu\Enum; use Aviat\Ion\Enum as BaseEnum; diff --git a/src/API/Kitsu/KitsuModel.php b/src/API/Kitsu/KitsuModel.php index 400f4289..967392ee 100644 --- a/src/API/Kitsu/KitsuModel.php +++ b/src/API/Kitsu/KitsuModel.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\Kitsu; use Aviat\AnimeClient\API\Kitsu as K; diff --git a/src/API/Kitsu/KitsuTrait.php b/src/API/Kitsu/KitsuTrait.php index b8f7d390..30d97fa1 100644 --- a/src/API/Kitsu/KitsuTrait.php +++ b/src/API/Kitsu/KitsuTrait.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\Kitsu; use Aviat\AnimeClient\AnimeClient; diff --git a/src/API/Kitsu/ListItem.php b/src/API/Kitsu/ListItem.php index b3e565bb..f21101f8 100644 --- a/src/API/Kitsu/ListItem.php +++ b/src/API/Kitsu/ListItem.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\Kitsu; use Aviat\AnimeClient\API\AbstractListItem; diff --git a/src/API/Kitsu/Transformer/AnimeListTransformer.php b/src/API/Kitsu/Transformer/AnimeListTransformer.php index 916acf99..7d05e76e 100644 --- a/src/API/Kitsu/Transformer/AnimeListTransformer.php +++ b/src/API/Kitsu/Transformer/AnimeListTransformer.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\Kitsu\Transformer; use Aviat\AnimeClient\API\Kitsu; diff --git a/src/API/Kitsu/Transformer/AnimeTransformer.php b/src/API/Kitsu/Transformer/AnimeTransformer.php index 9089c452..92c7ee7b 100644 --- a/src/API/Kitsu/Transformer/AnimeTransformer.php +++ b/src/API/Kitsu/Transformer/AnimeTransformer.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\Kitsu\Transformer; use Aviat\AnimeClient\API\Kitsu; diff --git a/src/API/Kitsu/Transformer/MangaListTransformer.php b/src/API/Kitsu/Transformer/MangaListTransformer.php index 328b9af7..2f9d3e0c 100644 --- a/src/API/Kitsu/Transformer/MangaListTransformer.php +++ b/src/API/Kitsu/Transformer/MangaListTransformer.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\Kitsu\Transformer; use Aviat\AnimeClient\API\Kitsu; diff --git a/src/API/Kitsu/Transformer/MangaTransformer.php b/src/API/Kitsu/Transformer/MangaTransformer.php index aa67608e..c2b0784d 100644 --- a/src/API/Kitsu/Transformer/MangaTransformer.php +++ b/src/API/Kitsu/Transformer/MangaTransformer.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\Kitsu\Transformer; use Aviat\Ion\Transformer\AbstractTransformer; diff --git a/src/API/ListItemInterface.php b/src/API/ListItemInterface.php index e88fc95f..b0001428 100644 --- a/src/API/ListItemInterface.php +++ b/src/API/ListItemInterface.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API; use GuzzleHttp\Psr7\Response; diff --git a/src/API/MAL/Auth.php b/src/API/MAL/Auth.php index 645c66d2..4f03508c 100644 --- a/src/API/MAL/Auth.php +++ b/src/API/MAL/Auth.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\MAL; use Aviat\AnimeClient\AnimeClient; diff --git a/src/API/MAL/Model.php b/src/API/MAL/Model.php index c6e38b41..47f948f4 100644 --- a/src/API/MAL/Model.php +++ b/src/API/MAL/Model.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\API\Kitsu; use Aviat\AnimeClient\Model\API; diff --git a/src/Command/BaseCommand.php b/src/Command/BaseCommand.php index 5d3eb0c1..b8205f71 100644 --- a/src/Command/BaseCommand.php +++ b/src/Command/BaseCommand.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Command; use Aura\Session\SessionFactory; diff --git a/src/Command/CacheImages.php b/src/Command/CacheImages.php index 37f3bb1e..5f9df74f 100644 --- a/src/Command/CacheImages.php +++ b/src/Command/CacheImages.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Command; use Aviat\AnimeClient\Util; diff --git a/src/Command/ClearCache.php b/src/Command/ClearCache.php index 5516de1a..d47bc0ba 100644 --- a/src/Command/ClearCache.php +++ b/src/Command/ClearCache.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Command; /** diff --git a/src/Controller/Anime.php b/src/Controller/Anime.php index 149013e4..674171a4 100644 --- a/src/Controller/Anime.php +++ b/src/Controller/Anime.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Controller; use Aviat\AnimeClient\Controller as BaseController; diff --git a/src/Controller/Collection.php b/src/Controller/Collection.php index 587cfe83..de6a5a7a 100644 --- a/src/Controller/Collection.php +++ b/src/Controller/Collection.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Controller; use Aviat\AnimeClient\Controller as BaseController; diff --git a/src/Controller/Manga.php b/src/Controller/Manga.php index efcd3544..96cc2959 100644 --- a/src/Controller/Manga.php +++ b/src/Controller/Manga.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Controller; use Aviat\AnimeClient\Controller; diff --git a/src/Helper/Menu.php b/src/Helper/Menu.php index 2b388938..76cbf3e3 100644 --- a/src/Helper/Menu.php +++ b/src/Helper/Menu.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Helper; use Aviat\AnimeClient\MenuGenerator; diff --git a/src/Model/API.php b/src/Model/API.php index 96fc2fa7..40797eb4 100644 --- a/src/Model/API.php +++ b/src/Model/API.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Model; use Aviat\Ion\Di\{ContainerAware, ContainerInterface}; diff --git a/src/Model/Anime.php b/src/Model/Anime.php index ce11164d..7d644bc2 100644 --- a/src/Model/Anime.php +++ b/src/Model/Anime.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Model; use Aviat\AnimeClient\API\Kitsu\Enum\AnimeWatchingStatus; use Aviat\Ion\Di\ContainerInterface; diff --git a/src/Model/AnimeCollection.php b/src/Model/AnimeCollection.php index e38b4756..83c64123 100644 --- a/src/Model/AnimeCollection.php +++ b/src/Model/AnimeCollection.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Model; use Aviat\Ion\Di\ContainerInterface; diff --git a/src/Model/Collection.php b/src/Model/Collection.php index 6fcd0af1..1abf5bfc 100644 --- a/src/Model/Collection.php +++ b/src/Model/Collection.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Model; use Aviat\Ion\Di\ContainerInterface; diff --git a/src/Model/DB.php b/src/Model/DB.php index 56bfecaf..dcacd4d6 100644 --- a/src/Model/DB.php +++ b/src/Model/DB.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Model; use Aviat\Ion\Di\ContainerInterface; diff --git a/src/Model/Manga.php b/src/Model/Manga.php index 87f918be..38ea4c5c 100644 --- a/src/Model/Manga.php +++ b/src/Model/Manga.php @@ -14,7 +14,6 @@ * @link https://github.com/timw4mail/HummingBirdAnimeClient */ - namespace Aviat\AnimeClient\Model; use Aviat\AnimeClient\API\Kitsu\Enum\MangaReadingStatus;