From ba2708488d77142afd3d13a93012b1971673e2c7 Mon Sep 17 00:00:00 2001 From: Sugeng Sulistiyawan Date: Fri, 25 Oct 2024 14:14:15 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/adapter/ZipArchiveAdapter.php | 2 +- src/traits/UrlGeneratorAdapterTrait.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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); }