From 50bc54310b8aa8783f701c0bf7be312208536120 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 30 Jun 2023 23:25:15 +0200 Subject: [PATCH] Remmove stubs (useless) --- composer.json | 6 --- psalm.xml | 1 - .../Core/EpisodeAction/EpisodeAction.php | 31 ------------ .../EpisodeAction/EpisodeActionReader.php | 17 ------- .../Core/EpisodeAction/EpisodeActionSaver.php | 10 ---- .../Core/PodcastData/PodcastActionCounts.php | 22 --------- .../Core/PodcastData/PodcastData.php | 47 ------------------- .../Core/PodcastData/PodcastDataReader.php | 16 ------- .../Core/PodcastData/PodcastMetrics.php | 28 ----------- .../Core/PodcastData/PodcastMetricsReader.php | 15 ------ .../SubscriptionChange/SubscriptionChange.php | 14 ------ .../SubscriptionChangeRequestParser.php | 13 ----- .../SubscriptionChangeSaver.php | 10 ---- .../SubscriptionChangesReader.php | 13 ----- 14 files changed, 243 deletions(-) delete mode 100644 stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeAction.php delete mode 100644 stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeActionReader.php delete mode 100644 stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeActionSaver.php delete mode 100644 stubs/OCA/GPodderSync/Core/PodcastData/PodcastActionCounts.php delete mode 100644 stubs/OCA/GPodderSync/Core/PodcastData/PodcastData.php delete mode 100644 stubs/OCA/GPodderSync/Core/PodcastData/PodcastDataReader.php delete mode 100644 stubs/OCA/GPodderSync/Core/PodcastData/PodcastMetrics.php delete mode 100644 stubs/OCA/GPodderSync/Core/PodcastData/PodcastMetricsReader.php delete mode 100644 stubs/OCA/GPodderSync/Core/SubscriptionChange/SubscriptionChange.php delete mode 100644 stubs/OCA/GPodderSync/Core/SubscriptionChange/SubscriptionChangeRequestParser.php delete mode 100644 stubs/OCA/GPodderSync/Core/SubscriptionChange/SubscriptionChangeSaver.php delete mode 100644 stubs/OCA/GPodderSync/Core/SubscriptionChange/SubscriptionChangesReader.php diff --git a/composer.json b/composer.json index 3bb2907..eec5845 100644 --- a/composer.json +++ b/composer.json @@ -15,12 +15,6 @@ "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 6584df1..1005f1b 100644 --- a/psalm.xml +++ b/psalm.xml @@ -10,7 +10,6 @@ > - diff --git a/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeAction.php b/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeAction.php deleted file mode 100644 index b0d6de8..0000000 --- a/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeAction.php +++ /dev/null @@ -1,31 +0,0 @@ - - */ - public function toArray(): array; -} diff --git a/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeActionReader.php b/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeActionReader.php deleted file mode 100644 index a169996..0000000 --- a/stubs/OCA/GPodderSync/Core/EpisodeAction/EpisodeActionReader.php +++ /dev/null @@ -1,17 +0,0 @@ - - */ - public function toArray(): array; - - /** - * @return array - */ - public function jsonSerialize(): array; -} diff --git a/stubs/OCA/GPodderSync/Core/PodcastData/PodcastData.php b/stubs/OCA/GPodderSync/Core/PodcastData/PodcastData.php deleted file mode 100644 index 0aa1fd2..0000000 --- a/stubs/OCA/GPodderSync/Core/PodcastData/PodcastData.php +++ /dev/null @@ -1,47 +0,0 @@ - - */ - public function toArray(): array; - - /** - * @return array - */ - public function jsonSerialize(): array; - - public static function fromArray(array $data): PodcastData; -} diff --git a/stubs/OCA/GPodderSync/Core/PodcastData/PodcastDataReader.php b/stubs/OCA/GPodderSync/Core/PodcastData/PodcastDataReader.php deleted file mode 100644 index 06f6dbf..0000000 --- a/stubs/OCA/GPodderSync/Core/PodcastData/PodcastDataReader.php +++ /dev/null @@ -1,16 +0,0 @@ - - */ - public function toArray(): array; - - /** - * @return array - */ - public function jsonSerialize(): array; -} diff --git a/stubs/OCA/GPodderSync/Core/PodcastData/PodcastMetricsReader.php b/stubs/OCA/GPodderSync/Core/PodcastData/PodcastMetricsReader.php deleted file mode 100644 index 784abe3..0000000 --- a/stubs/OCA/GPodderSync/Core/PodcastData/PodcastMetricsReader.php +++ /dev/null @@ -1,15 +0,0 @@ -