src/configs/Config.php
public static function normalizePath($path, $ds = self::UNIX_DS): string
    {
        return rtrim(strtr($path, '/\\', $ds . $ds), $ds);
    }
public static function normalizePath($path, $ds = self::UNIX_DS): string
    {
        return rtrim(strtr($path, '/\\', $ds . $ds), $ds);
    }
public static function normalizePath ( $ path , $ ds = self :: UNIX_DS ) : string { return rtrim ( strtr ( $ path , '/\\' , $ ds . $ ds ) , $ ds ) ; }
Normalizes given path with given directory separator.
Default forced to Unix directory separator for substitutePaths to work properly in Windows.
@param string $path path to be normalized
@param string $ds directory separator
@return string
Normalizes given path with given directory separator . Default forced to Unix directory separator for substitutePaths to work properly in Windows .