@@ -46,8 +46,9 @@ |
||
| 46 | 46 | $this->compressedSize = $compressedSize; |
| 47 | 47 | $this->uncompressedSize = $uncompressedSize; |
| 48 | 48 | $this->modificationTime = $modificationTime; |
| 49 | - if ($isCompressed === null) |
|
| 50 | - $isCompressed = $uncompressedSize !== $compressedSize; |
|
| 49 | + if ($isCompressed === null) { |
|
| 50 | + $isCompressed = $uncompressedSize !== $compressedSize; |
|
| 51 | + } |
|
| 51 | 52 | $this->isCompressed = $isCompressed; |
| 52 | 53 | $this->comment = $comment; |
| 53 | 54 | $this->crc32 = $crc32; |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | public static function getInstallationInstruction() |
| 109 | 109 | { |
| 110 | 110 | if (!class_exists('\Archive7z\Archive7z')) |
| 111 | - return 'install library [gemorroj/archive7z]: `composer require gemorroj/archive7z`' . "\n" |
|
| 111 | + return 'install library [gemorroj/archive7z]: `composer require gemorroj/archive7z`'."\n" |
|
| 112 | 112 | . ' and console program p7zip [7za]: `apt install p7zip-full` - depends on OS'; |
| 113 | 113 | |
| 114 | 114 | if (Archive7z::getBinaryVersion() === false) |
@@ -150,8 +150,8 @@ discard block |
||
| 150 | 150 | $information->files[] = $can_get_unix_path |
| 151 | 151 | ? $entry->getUnixPath() |
| 152 | 152 | : str_replace('\\', '/', $entry->getPath()); |
| 153 | - $information->compressedFilesSize += (int)$entry->getPackedSize(); |
|
| 154 | - $information->uncompressedFilesSize += (int)$entry->getSize(); |
|
| 153 | + $information->compressedFilesSize += (int) $entry->getPackedSize(); |
|
| 154 | + $information->uncompressedFilesSize += (int) $entry->getSize(); |
|
| 155 | 155 | } |
| 156 | 156 | return $information; |
| 157 | 157 | } |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | { |
| 210 | 210 | $entry = $this->sevenZip->getEntry($fileName); |
| 211 | 211 | if ($entry === null) { |
| 212 | - throw new NonExistentArchiveFileException('File ' . $fileName . ' does not exist'); |
|
| 212 | + throw new NonExistentArchiveFileException('File '.$fileName.' does not exist'); |
|
| 213 | 213 | } |
| 214 | 214 | return $entry->getContent(); |
| 215 | 215 | } |
@@ -28,8 +28,8 @@ |
||
| 28 | 28 | $output->writeln('<info>Archive is ok!</info>'); |
| 29 | 29 | } else { |
| 30 | 30 | $output->writeln('<error>Failed:</error>:'); |
| 31 | - array_walk($test_result, static function ($file) use ($output) { |
|
| 32 | - $output->writeln('- ' . $file); |
|
| 31 | + array_walk($test_result, static function($file) use ($output) { |
|
| 32 | + $output->writeln('- '.$file); |
|
| 33 | 33 | }); |
| 34 | 34 | } |
| 35 | 35 | return 0; |