mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-26 15:25:18 +02:00
Fix PHP coding standards
This commit is contained in:
@@ -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.
|
||||
|
@@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user