mirror of
https://github.com/mrclay/minify.git
synced 2025-08-12 09:05:08 +02:00
changes as per comments
https://github.com/mrclay/minify/pull/496#discussion_r50247608
This commit is contained in:
@@ -110,20 +110,20 @@ class Minify_Source_Factory {
|
|||||||
return $realpath;
|
return $realpath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $path
|
* turn windows-style slashes into unix-style,
|
||||||
|
* remove trailing slash
|
||||||
|
* and lowercase drive letter
|
||||||
|
*
|
||||||
|
* @param string $path absolute path
|
||||||
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getNormalizedPath($path)
|
public function getNormalizedPath($path)
|
||||||
{
|
{
|
||||||
// turn windows-style slashes into unix-style,
|
|
||||||
// remove trailing slash
|
|
||||||
// and lowercase drive letter
|
|
||||||
return lcfirst(rtrim(str_replace('\\', '/', $path), '/'));
|
return lcfirst(rtrim(str_replace('\\', '/', $path), '/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mixed $spec
|
* @param mixed $spec
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user