mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -52,7 +52,7 @@ public function connect(): bool
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getRepo(?string $repo = null): mixed
|
||||
public function getRepo(string $repo): mixed
|
||||
{
|
||||
$res = Http::withHeaders($this->getAuthenticationHeaders())
|
||||
->get($this->apiUrl."/repositories/$repo");
|
||||
@ -163,6 +163,9 @@ public function deployKey(string $title, string $repo, string $key): void
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
protected function getCommitter(string $raw): array
|
||||
{
|
||||
$committer = explode(' <', $raw);
|
||||
@ -173,6 +176,9 @@ protected function getCommitter(string $raw): array
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, string>
|
||||
*/
|
||||
private function getAuthenticationHeaders(): array
|
||||
{
|
||||
$username = $this->data()['username'];
|
||||
|
Reference in New Issue
Block a user