Skip to content

Commit

Permalink
🚑
Browse files Browse the repository at this point in the history
  • Loading branch information
sugeng-sulistiyawan committed Oct 25, 2024
1 parent cc7e6cb commit b437bc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/traits/UrlGeneratorAdapterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ trait UrlGeneratorAdapterTrait
public function publicUrl(string $path, /** @scrutinizer ignore-unused */Config $config): string
{
// TODO: Use absolute path and don't encrypt
if ($this->skipPrefixer !== false && $this->component->prefix) {
if ($this->skipPrefixer !== true && $this->component->prefix) {
$prefixer = new PathPrefixer((string) $this->component->prefix);
$path = $prefixer->stripPrefix($path);
}
Expand All @@ -47,7 +47,7 @@ public function publicUrl(string $path, /** @scrutinizer ignore-unused */Config
public function temporaryUrl(string $path, DateTimeInterface $expiresAt, /** @scrutinizer ignore-unused */Config $config): string
{
// TODO: Use absolute path and don't encrypt
if ($this->skipPrefixer !== false && $this->component->prefix) {
if ($this->skipPrefixer !== true && $this->component->prefix) {
$prefixer = new PathPrefixer((string) $this->component->prefix);
$path = $prefixer->stripPrefix($path);
}
Expand Down

0 comments on commit b437bc5

Please sign in to comment.