final class LocalPath

Normalizes local paths so a citation and the source URI can be compared.

Methods§

public static function normalize(string $path): string

Resolves ".", ".." and repeated separators without touching the file system.

Parameters

$pathstringThe path, with / or \\ separators

Returns

string The path segments joined by /, without leading or trailing separators
Test cases 1
Called from 3
Calls 4

Test cases 7§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 6

Relations§

Static calls 3