mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
code style fix
add command tests
This commit is contained in:
@ -17,7 +17,7 @@ public function connect(): bool
|
||||
{
|
||||
$res = Http::withToken($this->storageProvider->credentials['token'])
|
||||
->post($this->apiUrl.'/check/user', [
|
||||
'query' => ''
|
||||
'query' => '',
|
||||
]);
|
||||
|
||||
return $res->successful();
|
||||
@ -40,7 +40,7 @@ public function upload(Server $server, string $src, string $dest): array
|
||||
$data = json_decode($upload, true);
|
||||
|
||||
if (isset($data['error'])) {
|
||||
throw new BackupFileException("Failed to upload to Dropbox ".$data['error_summary'] ?? '');
|
||||
throw new BackupFileException('Failed to upload to Dropbox '.$data['error_summary'] ?? '');
|
||||
}
|
||||
|
||||
return [
|
||||
|
Reference in New Issue
Block a user