lint: fix php

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/653/head
Varun Patil 2023-05-08 21:19:13 -07:00
parent 7b5e136f0d
commit c3a27eeb7d
1 changed files with 6 additions and 2 deletions

View File

@ -184,7 +184,9 @@ class DownloadController extends GenericApiController
$out->setHeader('X-Accel-Buffering: no');
// Quit if HEAD request
if ('HEAD' === $this->request->getMethod()) return;
if ('HEAD' === $this->request->getMethod()) {
return;
}
// Open file to send
$res = $file->fopen('rb');
@ -264,7 +266,9 @@ class DownloadController extends GenericApiController
$streamer->sendHeaders($name);
// Quit if HEAD request
if ('HEAD' === $this->request->getMethod()) return;
if ('HEAD' === $this->request->getMethod()) {
return;
}
// Multiple files might have the same name
// So we need to add a number to the end of the name