From e967018b3bd715ab9ea3530423c3bbbaede163c2 Mon Sep 17 00:00:00 2001 From: theimerj Date: Fri, 5 Apr 2024 16:23:32 +0000 Subject: [PATCH] Fix styling --- src/Madnest/Madzipper/Repositories/ZipRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Madnest/Madzipper/Repositories/ZipRepository.php b/src/Madnest/Madzipper/Repositories/ZipRepository.php index 291608c..0bd26bd 100644 --- a/src/Madnest/Madzipper/Repositories/ZipRepository.php +++ b/src/Madnest/Madzipper/Repositories/ZipRepository.php @@ -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; @@ -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."; } } }