Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
theimerj authored and github-actions[bot] committed Apr 5, 2024
1 parent 0d0fd5b commit e967018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Madnest/Madzipper/Repositories/ZipRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function open($filePath, $create = false): void
$res = $this->archive->open($filePath, ($create ? ZipArchive::CREATE : null));

if ($res !== true) {
throw new Exception("Error: Failed to open $filePath! Error: ".$this->getErrorMessage($res));
throw new Exception("Error: Failed to open {$filePath}! Error: ".$this->getErrorMessage($res));
}

$this->open = true;
Expand Down Expand Up @@ -205,7 +205,7 @@ private function getErrorMessage($resultCode): string
case ZipArchive::ER_SEEK:
return 'ZipArchive::ER_SEEK - Seek error.';
default:
return "An unknown error [$resultCode] has occurred.";
return "An unknown error [{$resultCode}] has occurred.";
}
}
}

0 comments on commit e967018

Please sign in to comment.