Add phpstan level 7(#544)

This commit is contained in:
Saeed Vaziry
2025-03-12 13:31:10 +01:00
committed by GitHub
parent c22bb1fa80
commit 493cbb0849
437 changed files with 4505 additions and 2193 deletions

View File

@ -7,22 +7,47 @@
interface SourceControlProvider
{
/**
* @param array<string, mixed> $input
* @return array<string, mixed>
*/
public function createRules(array $input): array;
/**
* @param array<string, mixed> $input
* @return array<string, mixed>
*/
public function createData(array $input): array;
/**
* @param array<string, mixed> $input
* @return array<string, mixed>
*/
public function editRules(array $input): array;
/**
* @param array<string, mixed> $input
* @return array<string, mixed>
*/
public function editData(array $input): array;
/**
* @return array<string, mixed>
*/
public function data(): array;
public function connect(): bool;
public function getRepo(?string $repo = null): mixed;
public function getRepo(string $repo): mixed;
public function fullRepoUrl(string $repo, string $key): string;
/**
* @param array<mixed> $events
* @return array<string, mixed>
*
* @throws \App\Exceptions\FailedToDeployGitHook
*/
public function deployHook(string $repo, array $events, string $secret): array;
/**
@ -30,6 +55,9 @@ public function deployHook(string $repo, array $events, string $secret): array;
*/
public function destroyHook(string $repo, string $hookId): void;
/**
* @return array<string, mixed>
*/
public function getLastCommit(string $repo, string $branch): ?array;
/**
@ -37,5 +65,8 @@ public function getLastCommit(string $repo, string $branch): ?array;
*/
public function deployKey(string $title, string $repo, string $key): void;
/**
* @param array<string, mixed> $payload
*/
public function getWebhookBranch(array $payload): string;
}