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:
@@ -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 = '';
|
||||
|
Reference in New Issue
Block a user