Skip to content

Commit

Permalink
Revert "Fix tests"
Browse files Browse the repository at this point in the history
This reverts commit 3b5ba63.
  • Loading branch information
boryn authored and freekmurze committed Oct 17, 2023
1 parent 59eedbb commit 3e4c195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tasks/Backup/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ public function add(string | iterable $files, string $nameInZip = null): self
}

if (is_file($file)) {
$this->zipFile->addFile($file, ltrim($nameInZip ?: '', DIRECTORY_SEPARATOR));
$this->zipFile->addFile($file, ltrim($nameInZip, DIRECTORY_SEPARATOR)).PHP_EOL;

if ($nameInZip && is_int($compressionMethod)) {
if (is_int($compressionMethod)) {
$this->zipFile->setCompressionName(
ltrim($nameInZip, DIRECTORY_SEPARATOR),
$compressionMethod,
Expand Down

0 comments on commit 3e4c195

Please sign in to comment.