@@ 180-182 (lines=3) @@ | ||
177 | if (in_array($extension, ['zip', 'rar', 'tar', 'gz'])) { |
|
178 | return 'archive.png'; |
|
179 | } |
|
180 | if (in_array($extension, ['wav', 'mp3', 'flac', 'aac', 'aiff', 'm4a', 'ogg', 'oga', 'wma'])) { |
|
181 | return 'audio.png'; |
|
182 | } |
|
183 | if (in_array($extension, ['php', 'html', 'css', 'js', 'vb', 'phar', 'py', 'jar', 'json', 'yml'])) { |
|
184 | return 'code.png'; |
|
185 | } |
|
@@ 186-188 (lines=3) @@ | ||
183 | if (in_array($extension, ['php', 'html', 'css', 'js', 'vb', 'phar', 'py', 'jar', 'json', 'yml'])) { |
|
184 | return 'code.png'; |
|
185 | } |
|
186 | if (in_array($extension, ['xls', 'xlt', 'xlm', 'xlsx', 'xlsm', 'xltx', 'xltm'])) { |
|
187 | return 'excel.png'; |
|
188 | } |
|
189 | if (in_array($extension, ['png', 'jpg', 'jpeg', 'gif', 'bmp', 'tiff', 'ai', 'psd'])) { |
|
190 | return 'image.png'; |
|
191 | } |
|
@@ 207-209 (lines=3) @@ | ||
204 | if (in_array($extension, ['txt'])) { |
|
205 | return 'text.png'; |
|
206 | } |
|
207 | if (in_array($extension, ['doc', 'dot', 'wbk', 'docx', 'docm', 'dotx', 'dotm', 'docb'])) { |
|
208 | return 'word.png'; |
|
209 | } |
|
210 | ||
211 | return 'default.png'; |
|
212 | } |