mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 06:26:16 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user