@@ 189-191 (lines=3) @@ | ||
186 | if (in_array($extension, ['zip', 'rar', 'tar', 'gz'])) { |
|
187 | return 'archive.png'; |
|
188 | } |
|
189 | if (in_array($extension, ['wav', 'mp3', 'flac', 'aac', 'aiff', 'm4a', 'ogg', 'oga', 'wma'])) { |
|
190 | return 'audio.png'; |
|
191 | } |
|
192 | if (in_array($extension, ['php', 'html', 'css', 'js', 'vb', 'phar', 'py', 'jar', 'json', 'yml'])) { |
|
193 | return 'code.png'; |
|
194 | } |
|
@@ 195-197 (lines=3) @@ | ||
192 | if (in_array($extension, ['php', 'html', 'css', 'js', 'vb', 'phar', 'py', 'jar', 'json', 'yml'])) { |
|
193 | return 'code.png'; |
|
194 | } |
|
195 | if (in_array($extension, ['xls', 'xlt', 'xlm', 'xlsx', 'xlsm', 'xltx', 'xltm'])) { |
|
196 | return 'excel.png'; |
|
197 | } |
|
198 | if (in_array($extension, ['png', 'jpg', 'jpeg', 'gif', 'bmp', 'tiff', 'ai', 'psd'])) { |
|
199 | return 'image.png'; |
|
200 | } |
|
@@ 216-218 (lines=3) @@ | ||
213 | if (in_array($extension, ['txt'])) { |
|
214 | return 'txt.png'; |
|
215 | } |
|
216 | if (in_array($extension, ['doc', 'dot', 'wbk', 'docx', 'docm', 'dotx', 'dotm', 'docb'])) { |
|
217 | return 'word.png'; |
|
218 | } |
|
219 | ||
220 | return 'default.png'; |
|
221 | } |