Skip to content

Commit 0572750

Browse files
committed
Apply fixes from StyleCI
1 parent 441f39e commit 0572750

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

app/Helpers/GoogleDriveQuota.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ class GoogleDriveQuota
88
{
99
public static function getQuota(): array
1010
{
11-
$clientId = config('app.google.client_id');
11+
$clientId = config('app.google.client_id');
1212
$clientSecret = config('app.google.client_secret');
1313
$refreshToken = config('app.google.refresh_token');
1414

1515
// Step 1: Refresh token -> Access token
1616
$response = Http::asForm()->post('https://oauth2.googleapis.com/token', [
17-
'client_id' => $clientId,
17+
'client_id' => $clientId,
1818
'client_secret' => $clientSecret,
1919
'refresh_token' => $refreshToken,
20-
'grant_type' => 'refresh_token',
20+
'grant_type' => 'refresh_token',
2121
]);
2222

2323
if ($response->failed()) {
2424
return [
25-
'used_gb' => null,
25+
'used_gb' => null,
2626
'total_gb' => null,
27-
'error' => $response->json(),
27+
'error' => $response->json(),
2828
];
2929
}
3030

@@ -43,10 +43,8 @@ public static function getQuota(): array
4343
$usageGb = $usage ? round($usage / (1024 ** 3), 2) : 0;
4444

4545
return [
46-
'used' => $usageGb,
46+
'used' => $usageGb,
4747
'total' => $limitGb,
4848
];
4949
}
5050
}
51-
52-

0 commit comments

Comments
 (0)