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

@ -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 [