Skip to content

Commit cf58c6d

Browse files
authored
Code style and doc typo (#23)
* Code style and doc typo * Update MultipartStreamBuilder.php
1 parent 42fade9 commit cf58c6d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/MultipartStreamBuilder.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,11 @@ private function basename($path)
247247
// For Windows OS add special separator.
248248
$separators .= DIRECTORY_SEPARATOR;
249249
}
250-
// Remove right-most slashes when $uri points to directory.
250+
251+
// Remove right-most slashes when $path points to directory.
251252
$path = rtrim($path, $separators);
252-
// Returns the trailing part of the $uri starting after one of the directory
253-
// separators.
253+
254+
// Returns the trailing part of the $path starting after one of the directory separators.
254255
$filename = preg_match('@[^'.preg_quote($separators, '@').']+$@', $path, $matches) ? $matches[0] : '';
255256

256257
return $filename;

0 commit comments

Comments
 (0)