PHP Класс TQ\Vcs\FileSystem

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
bubble ( string $path, Closure $comparator ) : string | null Bubbles up a path until $comparator returns true
normalizeDirectorySeparator ( string $path ) : string Normalizes the directory separator to /

Описание методов

bubble() публичный статический Метод

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
Результат string | null The path that is found or NULL otherwise

normalizeDirectorySeparator() публичный статический Метод

Normalizes the directory separator to /
public static normalizeDirectorySeparator ( string $path ) : string
$path string The path
Результат string The normalized path