%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/graphicd/www/vebto/vendor/roave/better-reflection/src/Util/
Upload File :
Create Path :
Current File : /home/graphicd/www/vebto/vendor/roave/better-reflection/src/Util/FileHelper.php

<?php

declare(strict_types=1);

namespace Roave\BetterReflection\Util;

use function str_replace;
use const DIRECTORY_SEPARATOR;

class FileHelper
{
    public static function normalizeWindowsPath(string $path) : string
    {
        return str_replace('\\', '/', $path);
    }

    public static function normalizeSystemPath(string $path) : string
    {
        $path = self::normalizeWindowsPath($path);

        return DIRECTORY_SEPARATOR === '\\'
            ? str_replace('/', '\\', $path)
            : $path;
    }
}

Zerion Mini Shell 1.0