public static function ds($path, $endSlash = false) {
        $path = str_replace(array('\\', '/'), static::SEPARATOR, $path);

        if ($endSlash && substr($path, -1) !== static::SEPARATOR) {
            $path .= static::SEPARATOR;
        }

        return $path;
    }
public static function ds($path, $endSlash = false) {
        $path = str_replace(array('\\', '/'), static::SEPARATOR, $path);

        if ($endSlash && substr($path, -1) !== static::SEPARATOR) {
            $path .= static::SEPARATOR;
        }

        return $path;
    }
public static function ds ( $ path , $ endSlash = false ) { $ path = str_replace ( array ( '\\' , '/' ) , static :: SEPARATOR , $ path ) ; if ( $ endSlash && substr ( $ path , - 1 ) !== static :: SEPARATOR ) { $ path .= static :: SEPARATOR ; } return $ path ; }
Converts OS directory separators to the standard forward slash.

@param string $path
@param bool $endSlash
@return string
Converts OS directory separators to the standard forward slash .