Skip to content

Commit

Permalink
fix php cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Jul 11, 2023
1 parent c86b323 commit 77582c2
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,33 +149,6 @@ public function boot(): void
);
});


Storage::extend('dropbox', function ($app, $config): FilesystemContract {
$accessToken = Http::baseUrl('https://api.dropboxapi.com')
->timeout(5)
->retry(3, 50)
->withBasicAuth($config['app_key'], $config['app_secret'])
->post('/oauth2/token?'.Arr::query([
'grant_type' => 'refresh_token',
'refresh_token' => $config['refresh_token'],
]))
->json('access_token');

$adapter = new DropboxAdapter(
new DropboxClient($accessToken)
);

$config = [
'case_sensitive' => false,
];

return new FilesystemAdapter(
new Filesystem($adapter, $config),
$adapter,
$config
);
});

URL::macro('horizon', function (string $uri): string {
/** @var \Illuminate\Routing\UrlGenerator $this */
if (config('horizon.domain') !== null) {
Expand Down

0 comments on commit 77582c2

Please sign in to comment.