mirror of
https://github.com/mrclay/minify.git
synced 2025-08-17 19:37:22 +02:00
remove unneeded pack()
This commit is contained in:
@@ -126,7 +126,7 @@ class Minify_Source implements Minify_SourceInterface {
|
|||||||
: call_user_func($this->_getContentFunc, $this->_id)
|
: call_user_func($this->_getContentFunc, $this->_id)
|
||||||
);
|
);
|
||||||
// remove UTF-8 BOM if present
|
// remove UTF-8 BOM if present
|
||||||
return (pack("CCC",0xef,0xbb,0xbf) === substr($content, 0, 3))
|
return ("\xEF\xBB\xBF" === substr($content, 0, 3))
|
||||||
? substr($content, 3)
|
? substr($content, 3)
|
||||||
: $content;
|
: $content;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user