diff --git a/app/src/CallbackStream.php b/app/src/CallbackStream.php index 6afa8ef..e2e2296 100644 --- a/app/src/CallbackStream.php +++ b/app/src/CallbackStream.php @@ -40,9 +40,7 @@ class CallbackStream implements StreamInterface } /** Closes the stream and any underlying resources. */ - public function close() - { - } + public function close() {} /** * Separates any underlying resources from the stream. @@ -110,9 +108,7 @@ class CallbackStream implements StreamInterface * offset bytes SEEK_CUR: Set position to current location plus offset * SEEK_END: Set position to end-of-stream plus offset. */ - public function seek($offset, $whence = SEEK_SET): void - { - } + public function seek($offset, $whence = SEEK_SET): void {} /** * Seek to the beginning of the stream. diff --git a/app/src/Controllers/ZipController.php b/app/src/Controllers/ZipController.php index 2b09f1a..830c4ae 100644 --- a/app/src/Controllers/ZipController.php +++ b/app/src/Controllers/ZipController.php @@ -61,7 +61,7 @@ class ZipController { $compressionMethod = $this->config->get('zip_compress') ? Method::DEFLATE() : Method::STORE(); - $zipStreamOptions = new Archive(); + $zipStreamOptions = new Archive; $zipStreamOptions->setLargeFileMethod($compressionMethod); $zipStreamOptions->setSendHttpHeaders(false); $zipStreamOptions->setFlushOutput(true); @@ -70,7 +70,7 @@ class ZipController $zip = new ZipStream(null, $zipStreamOptions); foreach ($files as $file) { - $fileOption = new File(); + $fileOption = new File; $fileOption->setMethod($compressionMethod); $fileOption->setSize($file->getSize());