]> git.mxchange.org Git - friendica.git/commitdiff
Make PHP-CS happy
authorPhilipp <admin@philipp.info>
Sat, 26 Nov 2022 21:52:36 +0000 (22:52 +0100)
committerPhilipp <admin@philipp.info>
Sun, 27 Nov 2022 00:34:58 +0000 (01:34 +0100)
src/Module/Profile/Attachment/Browser.php

index 3dde2e65dd0ac64329364a691b1a6669ac175b9f..a6640bf5d23c2bc429867c75cc704368383a2174 100644 (file)
@@ -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']),