From: Philipp Date: Sat, 26 Nov 2022 21:52:36 +0000 (+0100) Subject: Make PHP-CS happy X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7c058153b5de2ff5601eed824ab5b185daf2107e;p=friendica.git Make PHP-CS happy --- diff --git a/src/Module/Profile/Attachment/Browser.php b/src/Module/Profile/Attachment/Browser.php index 3dde2e65dd..a6640bf5d2 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']),