PHP Class TQ\Vcs\FileSystem

Datei anzeigen Open project: teqneers/php-stream-wrapper-for-git Class Usage Examples

Public Methods

Method Description
bubble ( string $path, Closure $comparator ) : string | null Bubbles up a path until $comparator returns true
normalizeDirectorySeparator ( string $path ) : string Normalizes the directory separator to /

Method Details

bubble() public static method

Bubbles up a path until $comparator returns true
public static bubble ( string $path, Closure $comparator ) : string | null
$path string The path
$comparator Closure The callback used inside when bubbling to determine a finding
return string | null The path that is found or NULL otherwise

normalizeDirectorySeparator() public static method

Normalizes the directory separator to /
public static normalizeDirectorySeparator ( string $path ) : string
$path string The path
return string The normalized path