update composer (#84)

* update composer
log viewer
code style format

* fix composer
This commit is contained in:
Saeed Vaziry
2024-01-01 22:05:31 +01:00
committed by GitHub
parent 551f1ce40e
commit fd2244d382
32 changed files with 1527 additions and 966 deletions

View File

@ -15,7 +15,7 @@ class SSHFake
protected string $output = '';
public function init(Server $server, string $asUser = null): self
public function init(Server $server, ?string $asUser = null): self
{
return $this;
}
@ -47,7 +47,7 @@ public function assertExecuted(array|string $commands): void
PHPUnit::assertTrue(true, $allExecuted);
}
public function exec(string|array|SSHCommand $commands, string $log = '', int $siteId = null): string
public function exec(string|array|SSHCommand $commands, string $log = '', ?int $siteId = null): string
{
if (! is_array($commands)) {
$commands = [$commands];