Remmove stubs (useless)
All checks were successful
repod / nextcloud-25 (push) Successful in 1m15s
repod / nextcloud-27 (push) Successful in 40s
repod / nodejs (push) Successful in 1m58s

This commit is contained in:
Michel Roux 2023-06-30 23:25:15 +02:00
parent 25f602fa5b
commit 50bc54310b
14 changed files with 0 additions and 243 deletions

View File

@ -15,12 +15,6 @@
"psalm:check": "psalm.phar --threads=1 --no-cache --show-info=true", "psalm:check": "psalm.phar --threads=1 --no-cache --show-info=true",
"psalm:fix": "psalm.phar --no-cache --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType" "psalm:fix": "psalm.phar --no-cache --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType"
}, },
"autoload": {
"psr-4": {
"OCA\\RePod\\": "lib/",
"OCA\\GPodderSync\\": "stubs/OCA/GPodderSync/"
}
},
"config": { "config": {
"platform": { "platform": {
"php": "8.0" "php": "8.0"

View File

@ -10,7 +10,6 @@
> >
<projectFiles> <projectFiles>
<directory name="lib" /> <directory name="lib" />
<directory name="stubs" />
<ignoreFiles> <ignoreFiles>
<directory name="vendor" /> <directory name="vendor" />
</ignoreFiles> </ignoreFiles>

View File

@ -1,31 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\GPodderSync\Core\EpisodeAction;
interface EpisodeAction
{
public function getPodcast(): string;
public function getEpisode(): string;
public function getAction(): string;
public function getTimestamp(): string;
public function getStarted(): int;
public function getPosition(): int;
public function getTotal(): int;
public function getGuid() : ?string;
public function getId(): int;
/**
* @return array<string,mixed>
*/
public function toArray(): array;
}

View File

@ -1,17 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\GPodderSync\Core\EpisodeAction;
use InvalidArgumentException;
interface EpisodeActionReader
{
/**
* @param array $episodeActionsArray []
* @return EpisodeAction[]
* @throws InvalidArgumentException
*/
public function fromArray(array $episodeActionsArray): array;
}

View File

@ -1,10 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\GPodderSync\Core\EpisodeAction;
interface EpisodeActionSaver
{
public function saveEpisodeActions(array $episodeActionsArray, string $userId): array;
}

View File

@ -1,22 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\GPodderSync\Core\PodcastData;
use JsonSerializable;
interface PodcastActionCounts extends JsonSerializable
{
public function incrementAction(string $action): void;
/**
* @return array<string, int>
*/
public function toArray(): array;
/**
* @return array<string, int>
*/
public function jsonSerialize(): array;
}

View File

@ -1,47 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\GPodderSync\Core\PodcastData;
use Exception;
use JsonSerializable;
interface PodcastData extends JsonSerializable
{
/**
* @return PodcastData
* @throws Exception if the XML data could not be parsed.
*/
public static function parseRssXml(string $xmlString, ?int $fetchedAtUnix = null): PodcastData;
public function getTitle(): ?string;
public function getAuthor(): ?string;
public function getLink(): ?string;
public function getDescription(): ?string;
public function getImageUrl(): ?string;
public function getFetchedAtUnix(): ?int;
public function getImageBlob(): ?string;
public function setImageBlob(?string $blob): void;
public function __toString() : string;
/**
* @return array<string,mixed>
*/
public function toArray(): array;
/**
* @return array<string,mixed>
*/
public function jsonSerialize(): array;
public static function fromArray(array $data): PodcastData;
}

View File

@ -1,16 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\GPodderSync\Core\PodcastData;
interface PodcastDataReader
{
public function getCachedOrFetchPodcastData(string $url, string $userId): ?PodcastData;
public function fetchPodcastData(string $url, string $userId): ?PodcastData;
public function tryGetCachedPodcastData(string $url): ?PodcastData;
public function trySetCachedPodcastData(string $url, PodcastData $data): bool;
}

View File

@ -1,28 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\GPodderSync\Core\PodcastData;
use JsonSerializable;
interface PodcastMetrics extends JsonSerializable
{
public function getUrl(): string;
public function getActionCounts(): PodcastActionCounts;
public function getListenedSeconds(): int;
public function addListenedSeconds(int $seconds): void;
/**
* @return array<string,mixed>
*/
public function toArray(): array;
/**
* @return array<string,mixed>
*/
public function jsonSerialize(): array;
}

View File

@ -1,15 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\NextPod\Core\PodcastData;
use OCA\GPodderSync\Core\PodcastData\PodcastMetrics;
interface PodcastMetricsReader
{
/**
* @return PodcastMetrics[]
*/
public function metrics(string $userId): array;
}

View File

@ -1,14 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\NextPod\Core\SubscriptionChange;
interface SubscriptionChange
{
public function isSubscribed(): bool;
public function getUrl(): string;
public function __toString() : string;
}

View File

@ -1,13 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\NextPod\Core\SubscriptionChange;
interface SubscriptionChangeRequestParser
{
/**
* @return SubscriptionChange[]
*/
public function createSubscriptionChangeList(array $urlsSubscribed, array $urlsUnsubscribed): array;
}

View File

@ -1,10 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\NextPod\Core\SubscriptionChange;
interface SubscriptionChangeSaver
{
public function saveSubscriptionChanges(array $urlsSubscribed, array $urlsUnsubscribed, string $userId): void;
}

View File

@ -1,13 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\NextPod\Core\SubscriptionChange;
interface SubscriptionChangesReader
{
/**
* @return SubscriptionChange[]
*/
public static function mapToSubscriptionsChanges(array $urls, bool $subscribed): array;
}