Skip to content

Commit 09cfd7f

Browse files
committed
tweak formatting
1 parent bc9121c commit 09cfd7f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Illuminate/Filesystem/FilesystemAdapter.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ protected function getLocalUrl($path)
373373
* Get a temporary URL for the file at the given path.
374374
*
375375
* @param string $path
376-
* @param \DateTime $expiration
376+
* @param \DateTimeInterface $expiration
377377
* @return string
378378
*/
379379
public function temporaryUrl($path, $expiration)
@@ -383,15 +383,17 @@ public function temporaryUrl($path, $expiration)
383383
$client = $adapter->getClient();
384384

385385
if (! $adapter instanceof AwsS3Adapter) {
386-
throw new RuntimeException('This driver does not support retrieving temporary URLs.');
386+
throw new RuntimeException('This driver does not support creating temporary URLs.');
387387
}
388388

389389
$command = $client->getCommand('GetObject', [
390390
'Bucket' => $adapter->getBucket(),
391391
'Key' => $adapter->getPathPrefix().$path,
392392
]);
393393

394-
return (string) $client->createPresignedRequest($command, $expiration)->getUri();
394+
return (string) $client->createPresignedRequest(
395+
$command, $expiration
396+
)->getUri();
395397
}
396398

397399
/**

0 commit comments

Comments
 (0)