diff --git a/src/Ftp/FtpConnectionProvider.php b/src/Ftp/FtpConnectionProvider.php index 67bbaa68d..65ca716d3 100644 --- a/src/Ftp/FtpConnectionProvider.php +++ b/src/Ftp/FtpConnectionProvider.php @@ -4,9 +4,9 @@ namespace League\Flysystem\Ftp; +use const FTP_USEPASVADDRESS; use function error_clear_last; use function error_get_last; -use const FTP_USEPASVADDRESS; class FtpConnectionProvider implements ConnectionProvider { diff --git a/src/ZipArchive/ZipArchiveAdapter.php b/src/ZipArchive/ZipArchiveAdapter.php index 0826dd90e..712856aef 100644 --- a/src/ZipArchive/ZipArchiveAdapter.php +++ b/src/ZipArchive/ZipArchiveAdapter.php @@ -155,7 +155,7 @@ public function deleteDirectory(string $path): void $itemPath = $stats['name']; - if (!str_starts_with($itemPath, $prefixedPath)) { + if ( ! str_starts_with($itemPath, $prefixedPath)) { continue; } @@ -299,7 +299,7 @@ public function listContents(string $path, bool $deep): iterable if ( $location === $itemPath - || ($deep && $location !== '' && !str_starts_with($itemPath, $location)) + || ($deep && $location !== '' && ! str_starts_with($itemPath, $location)) || ($deep === false && ! $this->isAtRootDirectory($location, $itemPath)) ) { continue;