1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-10-19 17:18:12 +02:00

PHP-doc updated (@throws added everywhere) and minor refactoring done.

This commit is contained in:
wapplay
2018-10-09 10:06:04 +03:00
parent 59773d62a8
commit f9e6a73587
38 changed files with 942 additions and 684 deletions

View File

@@ -176,6 +176,7 @@ class TraditionalPkwareEncryptionEngine implements ZipEncryptionEngine
*
* @param string $data
* @return string
* @throws ZipCryptoException
*/
public function encrypt($data)
{
@@ -202,7 +203,7 @@ class TraditionalPkwareEncryptionEngine implements ZipEncryptionEngine
*/
private function encryptData($content)
{
if (null === $content) {
if ($content === null) {
throw new ZipCryptoException('content is null');
}
$buff = '';