1
0
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:
Elan Ruusamäe
2016-01-22 08:50:13 +02:00
parent 01d4835d14
commit 14bde12d3b

View File

@@ -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
* *