lint: php

cap
Varun Patil 2022-12-07 15:46:52 -08:00
parent ae9b01de19
commit 6707050883
1 changed files with 5 additions and 4 deletions

View File

@ -86,7 +86,8 @@ class ImageController extends ApiBase
*
* Get preview of many images
*/
public function multipreview() {
public function multipreview()
{
// read body to array
try {
$body = file_get_contents('php://input');
@ -106,7 +107,7 @@ class ImageController extends ApiBase
// stream the response
header('Content-Type: application/octet-stream');
header('Expires: ' . \gmdate('D, d M Y H:i:s \G\M\T', \time() + 7 * 3600 * 24));
header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + 7 * 3600 * 24));
header('Cache-Control: max-age='. 7 * 3600 * 24 .', private');
foreach ($files as $bodyFile) {
@ -114,7 +115,7 @@ class ImageController extends ApiBase
$fileid = (int) $bodyFile['fileid'];
$x = (int) $bodyFile['x'];
$y = (int) $bodyFile['y'];
$a = $bodyFile['a'] === '1';
$a = '1' === $bodyFile['a'];
$file = $this->getUserFile($fileid);
if (!$file) {