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 b437bc5 commit ba27084
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/adapter/ZipArchiveAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class ZipArchiveAdapter implements FilesystemAdapter, ChecksumProvider, Pu
/**
* @var bool
*/
protected $skipPrefixer = true;
public $skipPrefixer = true;

/**
* @var LeagueZipArchiveAdapter
Expand Down
6 changes: 3 additions & 3 deletions src/traits/UrlGeneratorAdapterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ trait UrlGeneratorAdapterTrait
/**
* @var bool
*/
protected $skipPrefixer = false;
public $skipPrefixer = false;

public function publicUrl(string $path, /** @scrutinizer ignore-unused */Config $config): string
{
// TODO: Use absolute path and don't encrypt
if ($this->skipPrefixer !== true && $this->component->prefix) {
if (!$this->skipPrefixer && $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 !== true && $this->component->prefix) {
if (!$this->skipPrefixer && $this->component->prefix) {
$prefixer = new PathPrefixer((string) $this->component->prefix);
$path = $prefixer->stripPrefix($path);
}
Expand Down

0 comments on commit ba27084

Please sign in to comment.