PHP Class TQ\Vcs\FileSystem

Afficher le fichier Open project: teqneers/php-stream-wrapper-for-git Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat string | null The path that is found or NULL otherwise

normalizeDirectorySeparator() public static méthode

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