Plank\Mediable\UrlGenerators\LocalUrlGenerator::cleanDirectorySeparators PHP Метод

cleanDirectorySeparators() защищенный Метод

Correct directory separator slashes on non-unix systems.
protected cleanDirectorySeparators ( string $path ) : string
$path string
Результат string
    protected function cleanDirectorySeparators($path)
    {
        if (DIRECTORY_SEPARATOR != '/') {
            $path = str_replace(DIRECTORY_SEPARATOR, '/', $path);
        }
        return $path;
    }