From 0038cdb5de009674e00943bee137d926146797e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 5 Jan 2018 14:32:25 +0200 Subject: [PATCH] use empty string comparison instead of strlen --- lib/Minify/ImportProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Minify/ImportProcessor.php b/lib/Minify/ImportProcessor.php index 6757ad1..f4792cc 100644 --- a/lib/Minify/ImportProcessor.php +++ b/lib/Minify/ImportProcessor.php @@ -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) {