From d3decb27e163b89225f8424c4df8ebbbd3e7823b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 5 Jan 2018 14:33:10 +0200 Subject: [PATCH] strict comparison --- lib/Minify/ImportProcessor.php | 4 ++-- lib/Minify/Lines.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Minify/ImportProcessor.php b/lib/Minify/ImportProcessor.php index f4792cc..48c00a7 100644 --- a/lib/Minify/ImportProcessor.php +++ b/lib/Minify/ImportProcessor.php @@ -194,10 +194,10 @@ class Minify_ImportProcessor $parts = array_filter(explode(DIRECTORY_SEPARATOR, $path), 'strlen'); $absolutes = array(); foreach ($parts as $part) { - if ('.' == $part) { + if ('.' === $part) { continue; } - if ('..' == $part) { + if ('..' === $part) { array_pop($absolutes); } else { $absolutes[] = $part; diff --git a/lib/Minify/Lines.php b/lib/Minify/Lines.php index 499a9cc..2024708 100644 --- a/lib/Minify/Lines.php +++ b/lib/Minify/Lines.php @@ -49,7 +49,7 @@ class Minify_Lines $newLines = array(); while (null !== ($line = array_shift($lines))) { - if (('' !== $id) && (0 == $i % 50)) { + if (('' !== $id) && (0 === $i % 50)) { if ($inComment) { array_push($newLines, '', "/* {$id} *|", ''); } else {