mini\Util\Path::normalizeRaw() Method

private static

Signature

private static function normalizeRaw(string $path): string

Parameters

Name Type Default Description
$path string required Documentation missing

Returns

string

Documentation

Normalize a raw path string to our internal representation:

  • Convert backslashes to "/"
  • Collapse duplicate slashes (except leading UNC "//")
  • Strip trailing slash except for "/", "//" and drive roots "C:/"

Source

src/Util/Path.php:525-554