1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-08 23:26:43 +02:00

use empty string comparison instead of strlen

This commit is contained in:
Elan Ruusamäe
2018-01-05 14:32:25 +02:00
parent 5659799c42
commit 0038cdb5de

View File

@@ -182,7 +182,7 @@ class Minify_ImportProcessor
private function truepath($path)
{
// 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
if (strpos($path, ':') === false && $unipath) {