base: byval for getPreviewFromImageList (#25)

pull/460/head
Varun Patil 2023-02-20 08:12:16 -08:00
parent 6a3fda1e0b
commit bdbce20f91
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ class ApiBase extends Controller
/** /**
* Given a list of file ids, return the first preview image possible. * Given a list of file ids, return the first preview image possible.
*/ */
protected function getPreviewFromImageList(array &$list, int $quality = 512) protected function getPreviewFromImageList(array $list, int $quality = 512)
{ {
// Get preview manager // Get preview manager
$previewManager = \OC::$server->get(\OCP\IPreview::class); $previewManager = \OC::$server->get(\OCP\IPreview::class);