Skip to content

Commit

Permalink
More information in changelog and fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
wapmorgan committed Jul 30, 2022
1 parent 89c4f1c commit c0e6c94
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 32 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@
# if not specified, uses OPEN or OPEN_ENCRYPTED check, if password passed
```
- Added `UnifiedArchive::test($files = [])` (and `cam files:test` command) to test archive contents (compare actual control sum with stored crc32).
- More informative output in commands: `system:drivers`, `system:formats`, `system:format`, added command `files:test`.
- Added driver abilities to select better driver.

**Driver changes:**
- Added `NelexaZip` driver.
- Added `NelexaZip` pure-PHP driver.
- Added `Iso` driver extraction ability.
- Added commenting-ability for `SevenZip` driver (via `descript.ion` file in archive).

### 1.1.5 - Jun 28, 2022

Expand Down
2 changes: 1 addition & 1 deletion src/Archive7z.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ public function setCompressionLevel($level)
$this->compressionLevel = $level;
return $this;
}
}
}
1 change: 1 addition & 0 deletions src/ArchiveEntry.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace wapmorgan\UnifiedArchive;

/**
Expand Down
3 changes: 2 additions & 1 deletion src/ArchiveInformation.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace wapmorgan\UnifiedArchive;

/**
Expand All @@ -16,4 +17,4 @@ class ArchiveInformation

/** @var int Original size of files inside archive in bytes */
public $uncompressedFilesSize = 0;
}
}
3 changes: 1 addition & 2 deletions src/Drivers/AlchemyZippy.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use wapmorgan\UnifiedArchive\Exceptions\ArchiveModificationException;
use wapmorgan\UnifiedArchive\Exceptions\UnsupportedOperationException;
use wapmorgan\UnifiedArchive\Formats;
use wapmorgan\UnifiedArchive\Drivers\BasicDriver;

class AlchemyZippy extends BasicDriver
{
Expand Down Expand Up @@ -334,4 +333,4 @@ public function addFileFromString($inArchiveName, $content)
fclose($fp);
return true;
}
}
}
2 changes: 1 addition & 1 deletion src/Drivers/BasicDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,4 @@ public function setComment($comment)
{
throw new UnsupportedOperationException();
}
}
}
4 changes: 1 addition & 3 deletions src/Drivers/Cab.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use Exception;
use wapmorgan\UnifiedArchive\ArchiveEntry;
use wapmorgan\UnifiedArchive\ArchiveInformation;
use wapmorgan\UnifiedArchive\Drivers\BasicDriver;
use wapmorgan\UnifiedArchive\Exceptions\ArchiveExtractionException;
use wapmorgan\UnifiedArchive\Exceptions\ArchiveModificationException;
use wapmorgan\UnifiedArchive\Exceptions\UnsupportedOperationException;
use wapmorgan\UnifiedArchive\Formats;

Expand Down Expand Up @@ -209,4 +207,4 @@ public function extractArchive($outputFolder)
);
}
}
}
}
3 changes: 1 addition & 2 deletions src/Drivers/Iso.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

use wapmorgan\UnifiedArchive\ArchiveEntry;
use wapmorgan\UnifiedArchive\ArchiveInformation;
use wapmorgan\UnifiedArchive\Drivers\BasicDriver;
use wapmorgan\UnifiedArchive\Exceptions\UnsupportedOperationException;
use wapmorgan\UnifiedArchive\Formats;

Expand Down Expand Up @@ -270,4 +269,4 @@ public function extractArchive($outputFolder)
{
return $this->extractFiles($outputFolder, $this->files);
}
}
}
2 changes: 1 addition & 1 deletion src/Drivers/NelexaZip.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@ public function addFiles(array $files)
$this->zip->addFile($fsFileName, $inArchiveName);
}
}
}
}
4 changes: 1 addition & 3 deletions src/Drivers/OneFile/Bzip.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php
namespace wapmorgan\UnifiedArchive\Drivers\OneFile;

use wapmorgan\UnifiedArchive\Drivers\BasicDriver;
use wapmorgan\UnifiedArchive\Formats;
use wapmorgan\UnifiedArchive\Drivers\OneFile\OneFileDriver;

class Bzip extends OneFileDriver
{
Expand Down Expand Up @@ -78,4 +76,4 @@ protected static function compressData($data, $compressionLevel)
$work_factor = ($compressionLevelMap[$compressionLevel] * $work_factor_multiplier);
return bzcompress($data, $compressionLevelMap[$compressionLevel], $work_factor);
}
}
}
4 changes: 1 addition & 3 deletions src/Drivers/OneFile/Gzip.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
namespace wapmorgan\UnifiedArchive\Drivers\OneFile;

use Exception;
use wapmorgan\UnifiedArchive\Drivers\BasicDriver;
use wapmorgan\UnifiedArchive\Formats;
use wapmorgan\UnifiedArchive\Drivers\OneFile\OneFileDriver;

class Gzip extends OneFileDriver
{
Expand Down Expand Up @@ -90,4 +88,4 @@ protected static function compressData($data, $compressionLevel)
];
return gzencode($data, $compressionLevelMap[$compressionLevel]);
}
}
}
4 changes: 1 addition & 3 deletions src/Drivers/OneFile/Lzma.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php
namespace wapmorgan\UnifiedArchive\Drivers\OneFile;

use wapmorgan\UnifiedArchive\Drivers\BasicDriver;
use wapmorgan\UnifiedArchive\Formats;
use wapmorgan\UnifiedArchive\Drivers\OneFile\OneFileDriver;

/**
* Class Lzma
Expand Down Expand Up @@ -73,4 +71,4 @@ protected static function compressData($data, $compressionLevel)
{
return xzencode($data);
}
}
}
1 change: 0 additions & 1 deletion src/Drivers/OneFile/OneFileDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use wapmorgan\UnifiedArchive\Exceptions\ArchiveExtractionException;
use wapmorgan\UnifiedArchive\Exceptions\EmptyFileListException;
use wapmorgan\UnifiedArchive\Exceptions\UnsupportedOperationException;
use wapmorgan\UnifiedArchive\Formats;

abstract class OneFileDriver extends BasicDriver
{
Expand Down
5 changes: 1 addition & 4 deletions src/Drivers/Rar.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
use Exception;
use wapmorgan\UnifiedArchive\ArchiveEntry;
use wapmorgan\UnifiedArchive\ArchiveInformation;
use wapmorgan\UnifiedArchive\Drivers\BasicDriver;
use wapmorgan\UnifiedArchive\Exceptions\ArchiveModificationException;
use wapmorgan\UnifiedArchive\Exceptions\UnsupportedOperationException;
use wapmorgan\UnifiedArchive\Formats;

class Rar extends BasicDriver
Expand Down Expand Up @@ -215,4 +212,4 @@ public function extractArchive($outputFolder)
{
return $this->extractFiles($outputFolder, $this->getFileNames());
}
}
}
3 changes: 1 addition & 2 deletions src/Drivers/SevenZip.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use wapmorgan\UnifiedArchive\Archive7z;
use wapmorgan\UnifiedArchive\ArchiveEntry;
use wapmorgan\UnifiedArchive\ArchiveInformation;
use wapmorgan\UnifiedArchive\Drivers\BasicDriver;
use wapmorgan\UnifiedArchive\Exceptions\ArchiveCreationException;
use wapmorgan\UnifiedArchive\Exceptions\ArchiveExtractionException;
use wapmorgan\UnifiedArchive\Exceptions\ArchiveModificationException;
Expand Down Expand Up @@ -454,4 +453,4 @@ public function setComment($comment)
}
$this->addFileFromString(static::COMMENT_FILE, $comment);
}
}
}
2 changes: 1 addition & 1 deletion src/Drivers/TarByPear.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,4 +393,4 @@ public function addFileFromString($inArchiveName, $content)
{
return $this->tar->addString($inArchiveName, $content);
}
}
}
2 changes: 0 additions & 2 deletions src/Drivers/TarByPhar.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
use PharData;
use PharFileInfo;
use RecursiveIteratorIterator;
use Vtiful\Kernel\Format;
use wapmorgan\UnifiedArchive\ArchiveEntry;
use wapmorgan\UnifiedArchive\ArchiveInformation;
use wapmorgan\UnifiedArchive\Drivers\BasicDriver;
use wapmorgan\UnifiedArchive\Exceptions\ArchiveCreationException;
use wapmorgan\UnifiedArchive\Exceptions\ArchiveExtractionException;
use wapmorgan\UnifiedArchive\Exceptions\ArchiveModificationException;
Expand Down
2 changes: 1 addition & 1 deletion src/Formats.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,4 @@ protected static function getAllPossibleFormatsAndDrivers()
}
}
}
}
}
1 change: 1 addition & 0 deletions src/LzwStreamWrapper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace wapmorgan\UnifiedArchive;

/**
Expand Down
1 change: 1 addition & 0 deletions src/PclZipInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace wapmorgan\UnifiedArchive;

use RecursiveIteratorIterator;
Expand Down

0 comments on commit c0e6c94

Please sign in to comment.