Skip to content

Commit eeb8232

Browse files
committed
fix typo
1 parent b2ac536 commit eeb8232

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/LfmStorageRepository.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,10 @@ public function url($path)
4545
{
4646
$config = $this->disk->getConfig();
4747

48-
if (key_exists('driver', $config) && $config['driver'] == 's3')
49-
50-
$duration = $this->helper->config('s3.temporary_url_expiration');
48+
if (key_exists('driver', $config) && $config['driver'] == 's3') {
49+
$duration = $this->helper->config('temporary_url_duration');
5150
return $this->disk->temporaryUrl($path, now()->addMinutes($duration));
52-
53-
else {
51+
} else {
5452
return $this->disk->url($path);
5553
}
5654
}

0 commit comments

Comments
 (0)