From df30ff23180e16e3ec1ac7d055a6573ccb6ee249 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 2 Aug 2023 12:13:16 +0200 Subject: [PATCH] Readd gpodder stubs --- composer.json | 6 ++ psalm.xml | 1 + .../Core/EpisodeAction/EpisodeAction.php | 44 ++++++++++++++ .../EpisodeAction/EpisodeActionReader.php | 15 +++++ .../Core/EpisodeAction/EpisodeActionSaver.php | 10 ++++ .../Core/PodcastData/PodcastActionCounts.php | 29 ++++++++++ .../Core/PodcastData/PodcastData.php | 57 +++++++++++++++++++ .../Core/PodcastData/PodcastDataReader.php | 16 ++++++ .../Core/PodcastData/PodcastMetrics.php | 33 +++++++++++ .../Core/PodcastData/PodcastMetricsReader.php | 13 +++++ .../SubscriptionChange/SubscriptionChange.php | 14 +++++ .../SubscriptionChangeRequestParser.php | 13 +++++ .../SubscriptionChangeSaver.php | 10 ++++ .../SubscriptionChangesReader.php | 13 +++++ 14 files changed, 274 insertions(+) create mode 100644 stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeAction.php create mode 100644 stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeActionReader.php create mode 100644 stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeActionSaver.php create mode 100644 stubs/OCA/GPodderSync/Core/PodcastData/PodcastActionCounts.php create mode 100644 stubs/OCA/GPodderSync/Core/PodcastData/PodcastData.php create mode 100644 stubs/OCA/GPodderSync/Core/PodcastData/PodcastDataReader.php create mode 100644 stubs/OCA/GPodderSync/Core/PodcastData/PodcastMetrics.php create mode 100644 stubs/OCA/GPodderSync/Core/PodcastData/PodcastMetricsReader.php create mode 100644 stubs/OCA/GPodderSync/Core/SubscriptionChange/SubscriptionChange.php create mode 100644 stubs/OCA/GPodderSync/Core/SubscriptionChange/SubscriptionChangeRequestParser.php create mode 100644 stubs/OCA/GPodderSync/Core/SubscriptionChange/SubscriptionChangeSaver.php create mode 100644 stubs/OCA/GPodderSync/Core/SubscriptionChange/SubscriptionChangesReader.php diff --git a/composer.json b/composer.json index e4c224d..9f350de 100644 --- a/composer.json +++ b/composer.json @@ -15,6 +15,12 @@ "psalm:check": "psalm.phar --threads=1 --no-cache --show-info=true", "psalm:fix": "psalm.phar --no-cache --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType" }, + "autoload": { + "psr-4": { + "OCA\\RePod\\": "lib/", + "OCA\\GPodderSync\\": "stubs/OCA/GPodderSync/" + } + }, "config": { "platform": { "php": "8.0" diff --git a/psalm.xml b/psalm.xml index bacd293..70602d3 100644 --- a/psalm.xml +++ b/psalm.xml @@ -10,6 +10,7 @@ > + diff --git a/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeAction.php b/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeAction.php new file mode 100644 index 0000000..0029ed4 --- /dev/null +++ b/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeAction.php @@ -0,0 +1,44 @@ +