Skip to content

Commit

Permalink
nitpicks
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 19, 2017
1 parent 311634d commit 9ec87b9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Exceptions/UrlCannotBeDetermined.php
Expand Up @@ -11,7 +11,7 @@ public static function mediaNotPubliclyAvailable(string $storagePath, string $pu
return new static("Storagepath `{$storagePath}` is not part of public path `{$publicPath}`");
}

public static function temporaryUrlOnlyWorksOnS3()
public static function filesystemDoesNotSupportTemporaryUrls()
{
return new static('Generating temporary URLs only works on the S3 filesystem driver');
}
Expand Down
9 changes: 0 additions & 9 deletions src/Media.php
Expand Up @@ -68,15 +68,6 @@ public function getUrl(string $conversionName = ''): string
return $urlGenerator->getUrl();
}

/**
* Get a temporary url to a original media file.
*
* @param string $conversionName
* @param \DateTimeInterface $expiration
* @param array $options
*
* @return string
*/
public function getTemporaryUrl(DateTimeInterface $expiration, string $conversionName = '', array $options = []): string
{
$urlGenerator = UrlGeneratorFactory::createForMedia($this, $conversionName);
Expand Down
2 changes: 1 addition & 1 deletion src/UrlGenerator/LocalUrlGenerator.php
Expand Up @@ -35,7 +35,7 @@ public function getUrl(): string
*/
public function getTemporaryUrl(DateTimeInterface $expiration, array $options = []): string
{
throw UrlCannotBeDetermined::temporaryUrlOnlyWorksOnS3();
throw UrlCannotBeDetermined::filesystemDoesNotSupportTemporaryUrls();
}

/*
Expand Down
2 changes: 1 addition & 1 deletion src/UrlGenerator/S3UrlGenerator.php
Expand Up @@ -32,7 +32,7 @@ public function getUrl(): string
* Get the temporary url for the profile of a media item.
*
* @param \DateTimeInterface $expiration
* @param array $options
* @param array $options
*
* @return string
*/
Expand Down
2 changes: 1 addition & 1 deletion src/UrlGenerator/UrlGenerator.php
Expand Up @@ -20,7 +20,7 @@ public function getUrl(): string;
* Get the temporary url for the profile of a media item.
*
* @param \DateTimeInterface $expiration
* @param array $options
* @param array $options
*
* @return string
*/
Expand Down

0 comments on commit 9ec87b9

Please sign in to comment.