From 14bde12d3bff234475e9855adf029d1ff9a3fa9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 22 Jan 2016 08:50:13 +0200 Subject: [PATCH] changes as per comments https://github.com/mrclay/minify/pull/496#discussion_r50247608 --- lib/Minify/Source/Factory.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Minify/Source/Factory.php b/lib/Minify/Source/Factory.php index 2cec8d6..c65ce6d 100644 --- a/lib/Minify/Source/Factory.php +++ b/lib/Minify/Source/Factory.php @@ -110,20 +110,20 @@ class Minify_Source_Factory { 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 */ public function getNormalizedPath($path) { - // turn windows-style slashes into unix-style, - // remove trailing slash - // and lowercase drive letter return lcfirst(rtrim(str_replace('\\', '/', $path), '/')); } - /** * @param mixed $spec *