@@ 105-107 (lines=3) @@ | ||
102 | if (in_array($extension, ['zip', 'rar', 'tar', 'gz'])) { |
|
103 | return 'archive.png'; |
|
104 | } |
|
105 | if (in_array($extension, ['wav', 'mp3', 'flac', 'aac', 'aiff', 'm4a', 'ogg', 'oga', 'wma'])) { |
|
106 | return 'audio.png'; |
|
107 | } |
|
108 | if (in_array($extension, ['php', 'html', 'css', 'js', 'vb', 'phar', 'py', 'jar', 'json', 'yml'])) { |
|
109 | return 'code.png'; |
|
110 | } |
|
@@ 111-113 (lines=3) @@ | ||
108 | if (in_array($extension, ['php', 'html', 'css', 'js', 'vb', 'phar', 'py', 'jar', 'json', 'yml'])) { |
|
109 | return 'code.png'; |
|
110 | } |
|
111 | if (in_array($extension, ['xls', 'xlt', 'xlm', 'xlsx', 'xlsm', 'xltx', 'xltm'])) { |
|
112 | return 'excel.png'; |
|
113 | } |
|
114 | if (in_array($extension, ['png', 'jpg', 'jpeg', 'gif', 'bmp', 'tiff', 'ai', 'psd'])) { |
|
115 | return 'image.png'; |
|
116 | } |
|
@@ 132-134 (lines=3) @@ | ||
129 | if (in_array($extension, ['txt'])) { |
|
130 | return 'txt.png'; |
|
131 | } |
|
132 | if (in_array($extension, ['doc', 'dot', 'wbk', 'docx', 'docm', 'dotx', 'dotm', 'docb'])) { |
|
133 | return 'word.png'; |
|
134 | } |
|
135 | ||
136 | return 'default.png'; |
|
137 | } |