diff --git a/src/adapter/ZipArchiveAdapter.php b/src/adapter/ZipArchiveAdapter.php index e06c675..b206e13 100644 --- a/src/adapter/ZipArchiveAdapter.php +++ b/src/adapter/ZipArchiveAdapter.php @@ -29,7 +29,7 @@ final class ZipArchiveAdapter implements FilesystemAdapter, ChecksumProvider, Pu /** * @var bool */ - protected $skipPrefixer = true; + public $skipPrefixer = true; /** * @var LeagueZipArchiveAdapter diff --git a/src/traits/UrlGeneratorAdapterTrait.php b/src/traits/UrlGeneratorAdapterTrait.php index 45d517e..a44c4d0 100644 --- a/src/traits/UrlGeneratorAdapterTrait.php +++ b/src/traits/UrlGeneratorAdapterTrait.php @@ -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); } @@ -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); }