Skip to content

Commit

Permalink
strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 5, 2018
1 parent 0038cdb commit d3decb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Minify/ImportProcessor.php
Expand Up @@ -194,10 +194,10 @@ private function truepath($path)
$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;
Expand Down
2 changes: 1 addition & 1 deletion lib/Minify/Lines.php
Expand Up @@ -49,7 +49,7 @@ public static function minify($content, $options = array())
$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 {
Expand Down

0 comments on commit d3decb2

Please sign in to comment.