code style fix

add command tests
This commit is contained in:
Saeed Vaziry
2023-09-02 16:41:42 +02:00
parent 71f9dabc24
commit e1eb42059f
135 changed files with 1859 additions and 135 deletions

View File

@ -74,11 +74,11 @@ public function connect(bool $sftp = false): void
$login = $this->connection->login($this->user, $this->privateKey);
if (! $login) {
throw new SSHAuthenticationError("Error authenticating");
throw new SSHAuthenticationError('Error authenticating');
}
} catch (Throwable $e) {
Log::error("Error connecting", [
"msg" => $e->getMessage()
Log::error('Error connecting', [
'msg' => $e->getMessage(),
]);
throw $e;
}