mirror of
https://github.com/mrclay/minify.git
synced 2025-08-20 04:41:29 +02:00
Added docblock comments
This commit is contained in:
@@ -30,6 +30,15 @@ class Minify_CSS {
|
|||||||
* with "/*!" will be preserved with newlines before and after to
|
* with "/*!" will be preserved with newlines before and after to
|
||||||
* enhance readability.
|
* enhance readability.
|
||||||
*
|
*
|
||||||
|
* 'prependRelativePath': (default null) if given, this string will be
|
||||||
|
* prepended to all relative URIs in import/url declarations
|
||||||
|
*
|
||||||
|
* 'currentPath': (default null) if given, this is assumed to be the
|
||||||
|
* file path of the current CSS file. Using this, minify will rewrite
|
||||||
|
* all relative URIs in import/url declarations to correctly point to
|
||||||
|
* the desired files. For this to work, the files *must* exist and be
|
||||||
|
* visible by the PHP process.
|
||||||
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function minify($css, $options = array())
|
public static function minify($css, $options = array())
|
||||||
@@ -221,7 +230,7 @@ class Minify_CSS {
|
|||||||
$url = $m[2];
|
$url = $m[2];
|
||||||
} else {
|
} else {
|
||||||
// $m[1] is surrounded by quotes or not
|
// $m[1] is surrounded by quotes or not
|
||||||
$quote = ($m[1][0] === '\'' || $m[1][0] === '"')
|
$quote = ($m[1][0] === "'" || $m[1][0] === '"')
|
||||||
? $m[1][0]
|
? $m[1][0]
|
||||||
: '';
|
: '';
|
||||||
$url = ($quote === '')
|
$url = ($quote === '')
|
||||||
|
Reference in New Issue
Block a user