mirror of
https://github.com/mrclay/minify.git
synced 2025-08-10 08:04:14 +02:00
use empty string comparison instead of strlen
This commit is contained in:
@@ -182,7 +182,7 @@ class Minify_ImportProcessor
|
|||||||
private function truepath($path)
|
private function truepath($path)
|
||||||
{
|
{
|
||||||
// whether $path is unix or not
|
// whether $path is unix or not
|
||||||
$unipath = (strlen($path) == 0) || ($path{0} != '/');
|
$unipath = ('' === $path) || ($path{0} !== '/');
|
||||||
|
|
||||||
// attempts to detect if path is relative in which case, add cwd
|
// attempts to detect if path is relative in which case, add cwd
|
||||||
if (strpos($path, ':') === false && $unipath) {
|
if (strpos($path, ':') === false && $unipath) {
|
||||||
|
Reference in New Issue
Block a user