@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | public static function open($fileName, $password = null) |
56 | 56 | { |
57 | 57 | if (!file_exists($fileName) || !is_readable($fileName)) { |
58 | - throw new InvalidArgumentException('Could not open file: ' . $fileName); |
|
58 | + throw new InvalidArgumentException('Could not open file: '.$fileName); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | $format = Formats::detectArchiveFormat($fileName); |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | public function getFileData($fileName) |
215 | 215 | { |
216 | 216 | if (!in_array($fileName, $this->files, true)) { |
217 | - throw new NonExistentArchiveFileException('File ' . $fileName . ' does not exist in archive'); |
|
217 | + throw new NonExistentArchiveFileException('File '.$fileName.' does not exist in archive'); |
|
218 | 218 | } |
219 | 219 | |
220 | 220 | return $this->archive->getFileData($fileName); |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | public function getFileContent($fileName) |
231 | 231 | { |
232 | 232 | if (!in_array($fileName, $this->files, true)) { |
233 | - throw new NonExistentArchiveFileException('File ' . $fileName . ' does not exist in archive'); |
|
233 | + throw new NonExistentArchiveFileException('File '.$fileName.' does not exist in archive'); |
|
234 | 234 | } |
235 | 235 | |
236 | 236 | return $this->archive->getFileContent($fileName); |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | public function getFileStream($fileName) |
247 | 247 | { |
248 | 248 | if (!in_array($fileName, $this->files, true)) { |
249 | - throw new NonExistentArchiveFileException('File ' . $fileName . ' does not exist in archive'); |
|
249 | + throw new NonExistentArchiveFileException('File '.$fileName.' does not exist in archive'); |
|
250 | 250 | } |
251 | 251 | |
252 | 252 | return $this->archive->getFileStream($fileName); |
@@ -503,7 +503,7 @@ discard block |
||
503 | 503 | public static function archiveFile($file, $archiveName, $compressionLevel = BasicDriver::COMPRESSION_AVERAGE, $password = null) |
504 | 504 | { |
505 | 505 | if (!is_file($file)) { |
506 | - throw new InvalidArgumentException($file . ' is not a valid file to archive'); |
|
506 | + throw new InvalidArgumentException($file.' is not a valid file to archive'); |
|
507 | 507 | } |
508 | 508 | |
509 | 509 | return static::archiveFiles($file, $archiveName, $compressionLevel, $password) === 1; |