From 6707050883363406bdf38c4499b9f42f2f091da6 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 7 Dec 2022 15:46:52 -0800 Subject: [PATCH] lint: php --- lib/Controller/ImageController.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Controller/ImageController.php b/lib/Controller/ImageController.php index 2a7a1804..ffb90e59 100644 --- a/lib/Controller/ImageController.php +++ b/lib/Controller/ImageController.php @@ -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,15 +107,15 @@ 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('Cache-Control: max-age=' . 7 * 3600 * 24 . ', private'); + 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) { $reqid = $bodyFile['reqid']; $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) {