From cf58c6d81e763ff91c2b83dd01ec441b138cf09f Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Sun, 25 Dec 2016 21:38:06 +0100 Subject: [PATCH] Code style and doc typo (#23) * Code style and doc typo * Update MultipartStreamBuilder.php --- src/MultipartStreamBuilder.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/MultipartStreamBuilder.php b/src/MultipartStreamBuilder.php index 5a62d75..8156511 100644 --- a/src/MultipartStreamBuilder.php +++ b/src/MultipartStreamBuilder.php @@ -247,10 +247,11 @@ private function basename($path) // For Windows OS add special separator. $separators .= DIRECTORY_SEPARATOR; } - // Remove right-most slashes when $uri points to directory. + + // Remove right-most slashes when $path points to directory. $path = rtrim($path, $separators); - // Returns the trailing part of the $uri starting after one of the directory - // separators. + + // Returns the trailing part of the $path starting after one of the directory separators. $filename = preg_match('@[^'.preg_quote($separators, '@').']+$@', $path, $matches) ? $matches[0] : ''; return $filename;