Fix PHP coding standards

This commit is contained in:
Arno DUBOIS
2023-12-17 17:30:43 +00:00
parent 24d0d2f013
commit 1bea4e2a0a
2 changed files with 4 additions and 8 deletions

View File

@@ -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.

View File

@@ -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());