mirror of
https://github.com/mrclay/minify.git
synced 2025-08-12 09:05:08 +02:00
strict comparison
This commit is contained in:
@@ -194,10 +194,10 @@ class Minify_ImportProcessor
|
|||||||
$parts = array_filter(explode(DIRECTORY_SEPARATOR, $path), 'strlen');
|
$parts = array_filter(explode(DIRECTORY_SEPARATOR, $path), 'strlen');
|
||||||
$absolutes = array();
|
$absolutes = array();
|
||||||
foreach ($parts as $part) {
|
foreach ($parts as $part) {
|
||||||
if ('.' == $part) {
|
if ('.' === $part) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ('..' == $part) {
|
if ('..' === $part) {
|
||||||
array_pop($absolutes);
|
array_pop($absolutes);
|
||||||
} else {
|
} else {
|
||||||
$absolutes[] = $part;
|
$absolutes[] = $part;
|
||||||
|
@@ -49,7 +49,7 @@ class Minify_Lines
|
|||||||
$newLines = array();
|
$newLines = array();
|
||||||
|
|
||||||
while (null !== ($line = array_shift($lines))) {
|
while (null !== ($line = array_shift($lines))) {
|
||||||
if (('' !== $id) && (0 == $i % 50)) {
|
if (('' !== $id) && (0 === $i % 50)) {
|
||||||
if ($inComment) {
|
if ($inComment) {
|
||||||
array_push($newLines, '', "/* {$id} *|", '');
|
array_push($newLines, '', "/* {$id} *|", '');
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user