From 7c058153b5de2ff5601eed824ab5b185daf2107e Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 26 Nov 2022 22:52:36 +0100 Subject: [PATCH] Make PHP-CS happy --- src/Module/Profile/Attachment/Browser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Profile/Attachment/Browser.php b/src/Module/Profile/Attachment/Browser.php index 3dde2e65d..a6640bf5d 100644 --- a/src/Module/Profile/Attachment/Browser.php +++ b/src/Module/Profile/Attachment/Browser.php @@ -88,8 +88,8 @@ class Browser extends BaseModule protected function map_files(array $record): array { - [$m1, $m2] = explode('/', $record['filetype']); - $filetype = file_exists(sprintf('images/icons/%s.png', $m1) ? $m1 : 'zip'); + list($m1, $m2) = explode('/', $record['filetype']); + $filetype = file_exists(sprintf('images/icons/%s.png', $m1) ? $m1 : 'zip'); return [ sprintf('%s/attach/%s', $this->baseUrl, $record['id']),