@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | if (!empty($not_installed)) { |
| 61 | 61 | echo 'Not supported archive types:'.PHP_EOL; |
| 62 | - array_walk($not_installed, function ($instruction, $extension) { |
|
| 62 | + array_walk($not_installed, function($instruction, $extension) { |
|
| 63 | 63 | echo '- '.$extension.': '.$instruction.PHP_EOL; |
| 64 | 64 | }); |
| 65 | 65 | } |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | if ($archived_files === false) |
| 290 | 290 | echo 'Error'.PHP_EOL; |
| 291 | 291 | else |
| 292 | - echo 'Created archive ' . $args['ARCHIVE'] . ' with ' . $archived_files . ' file(s) of total size ' . implode('', $this->formatSize(filesize($args['ARCHIVE']))) . PHP_EOL; |
|
| 292 | + echo 'Created archive '.$args['ARCHIVE'].' with '.$archived_files.' file(s) of total size '.implode('', $this->formatSize(filesize($args['ARCHIVE']))).PHP_EOL; |
|
| 293 | 293 | } |
| 294 | 294 | } |
| 295 | 295 | } |
@@ -205,7 +205,7 @@ |
||
| 205 | 205 | * @return false|int |
| 206 | 206 | * @throws \Exception |
| 207 | 207 | */ |
| 208 | - public static function createArchive(array $files, $archiveFileName){ |
|
| 208 | + public static function createArchive(array $files, $archiveFileName) { |
|
| 209 | 209 | $zip = new ZipArchive(); |
| 210 | 210 | $result = $zip->open($archiveFileName, ZipArchive::CREATE); |
| 211 | 211 | if ($result !== true) |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | * @return false|int |
| 130 | 130 | * @throws \wapmorgan\UnifiedArchive\UnsupportedOperationException |
| 131 | 131 | */ |
| 132 | - public static function createArchive(array $files, $archiveFileName){ |
|
| 132 | + public static function createArchive(array $files, $archiveFileName) { |
|
| 133 | 133 | if (count($files) > 1) return false; |
| 134 | 134 | $filename = array_shift($files); |
| 135 | 135 | if (is_null($filename)) return false; // invalid list |
@@ -35,8 +35,8 @@ |
||
| 35 | 35 | $information = new ArchiveInformation(); |
| 36 | 36 | foreach ($this->sevenZip->getEntries() as $entry) { |
| 37 | 37 | $information->files[] = $entry->getPath(); |
| 38 | - $information->compressedFilesSize += (int)$entry->getPackedSize(); |
|
| 39 | - $information->uncompressedFilesSize += (int)$entry->getSize(); |
|
| 38 | + $information->compressedFilesSize += (int) $entry->getPackedSize(); |
|
| 39 | + $information->uncompressedFilesSize += (int) $entry->getSize(); |
|
| 40 | 40 | } |
| 41 | 41 | return $information; |
| 42 | 42 | } |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | * @param string $archiveFileName |
| 168 | 168 | * @throws \wapmorgan\UnifiedArchive\UnsupportedOperationException |
| 169 | 169 | */ |
| 170 | - public static function createArchive(array $files, $archiveFileName){ |
|
| 170 | + public static function createArchive(array $files, $archiveFileName) { |
|
| 171 | 171 | throw new UnsupportedOperationException(); |
| 172 | 172 | } |
| 173 | 173 | } |
| 174 | 174 | \ No newline at end of file |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | class Lzma extends OneFileFormat |
| 11 | 11 | { |
| 12 | - const FORMAT_SUFFIX = 'xz'; |
|
| 12 | + const FORMAT_SUFFIX = 'xz'; |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * Lzma constructor. |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | class Bzip extends OneFileFormat |
| 7 | 7 | { |
| 8 | - const FORMAT_SUFFIX = 'bz2'; |
|
| 8 | + const FORMAT_SUFFIX = 'bz2'; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Bzip constructor. |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | * @return false|int |
| 169 | 169 | * @throws UnsupportedOperationException |
| 170 | 170 | */ |
| 171 | - public static function createArchive(array $files, $archiveFileName){ |
|
| 171 | + public static function createArchive(array $files, $archiveFileName) { |
|
| 172 | 172 | throw new UnsupportedOperationException(); |
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | \ No newline at end of file |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $compression = 'lzma2'; |
| 173 | 173 | break; |
| 174 | 174 | case 'z': |
| 175 | - $tar_aname = 'compress.lzw://' . $archiveFileName; |
|
| 175 | + $tar_aname = 'compress.lzw://'.$archiveFileName; |
|
| 176 | 176 | break; |
| 177 | 177 | } |
| 178 | 178 | |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | } |
| 328 | 328 | |
| 329 | 329 | LzwStreamWrapper::registerWrapper(); |
| 330 | - $this->tar = new Archive_Tar('compress.lzw://' . $this->archiveFileName); |
|
| 330 | + $this->tar = new Archive_Tar('compress.lzw://'.$this->archiveFileName); |
|
| 331 | 331 | break; |
| 332 | 332 | |
| 333 | 333 | default: |