Added comment

This commit is contained in:
Francis Besset 2012-12-14 12:28:34 +01:00
parent 773d818d6b
commit d3f5f3a44f

View File

@ -145,6 +145,8 @@ class CodeHelper extends Helper
if (is_readable($file)) {
if (extension_loaded('fileinfo')) {
$finfo = new \Finfo();
// Check if the file is an application/octet-stream (eg. Phar file) because hightlight_file cannot parse these files
if ('application/octet-stream' === $finfo->file($file, FILEINFO_MIME_TYPE)) {
return;
}