mirror of
https://github.com/matthiasmullie/minify.git
synced 2025-02-23 15:22:30 +01:00
Spaces after //
This commit is contained in:
parent
b77673f350
commit
2053c04da5
@ -298,7 +298,7 @@ class CSS extends Minify
|
|||||||
// loop css data (raw data and files)
|
// loop css data (raw data and files)
|
||||||
foreach ($this->data as $source => $css) {
|
foreach ($this->data as $source => $css) {
|
||||||
|
|
||||||
//put current source into import chain if it is a valid file
|
// put current source into import chain if it is a valid file
|
||||||
if ($this->canImportFile($source)) {
|
if ($this->canImportFile($source)) {
|
||||||
array_push(self::$importChain, $source);
|
array_push(self::$importChain, $source);
|
||||||
}
|
}
|
||||||
@ -338,7 +338,7 @@ class CSS extends Minify
|
|||||||
// combine css
|
// combine css
|
||||||
$content .= $css;
|
$content .= $css;
|
||||||
|
|
||||||
//remove current file from chain
|
// remove current file from chain
|
||||||
array_pop(self::$importChain);
|
array_pop(self::$importChain);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -319,8 +319,7 @@ abstract class Minify
|
|||||||
// PHP only supports $this inside anonymous functions since 5.4
|
// PHP only supports $this inside anonymous functions since 5.4
|
||||||
$minifier = $this;
|
$minifier = $this;
|
||||||
$callback = function ($match) use ($minifier) {
|
$callback = function ($match) use ($minifier) {
|
||||||
//check the second index here, because the first always contains a quote
|
// check the second index here, because the first always contains a quote
|
||||||
//that's why inner block could never be reached
|
|
||||||
if (!$match[2]) {
|
if (!$match[2]) {
|
||||||
/*
|
/*
|
||||||
* Empty strings need no placeholder; they can't be confused for
|
* Empty strings need no placeholder; they can't be confused for
|
||||||
|
Loading…
x
Reference in New Issue
Block a user