Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Ran PHPCBF
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbdaly committed Nov 12, 2020
1 parent ab2cd1d commit 775a2dd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/AzureStorageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function boot()
$adapter = new AzureBlobStorageAdapter(
$client,
$config['container'],
$config['key']?? null,
$config['key'] ?? null,
$config['url'] ?? null,
$config['prefix'] ?? null
);
Expand All @@ -42,15 +42,13 @@ public function register()
$this->app->bind(BlobRestProxy::class, function ($app, $config) {
$config = empty($config) ? $app->make('config')->get('filesystems.disks.azure') : $config;

if(array_key_exists('sasToken', $config)) {

if (array_key_exists('sasToken', $config)) {
$endpoint = sprintf(
'BlobEndpoint=%s;SharedAccessSignature=%s;',
$config['endpoint'],
$config['sasToken']
);
}else{

} else {
$endpoint = sprintf(
'DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s;',
$config['name'],
Expand Down

0 comments on commit 775a2dd

Please sign in to comment.