src/Lib/TreeScanner.php
protected static function convertPathToTree(array &$paths, $index, $path)
    {
        if (strpos($path, DIRECTORY_SEPARATOR) !== false) {
            $chunks = explode(DIRECTORY_SEPARATOR, $path);
            $paths = static::branch($paths, $chunks);
            unset($paths[$index]);
        }
    }
protected static function convertPathToTree(array &$paths, $index, $path)
    {
        if (strpos($path, DIRECTORY_SEPARATOR) !== false) {
            $chunks = explode(DIRECTORY_SEPARATOR, $path);
            $paths = static::branch($paths, $chunks);
            unset($paths[$index]);
        }
    }
protected static function convertPathToTree ( array & $ paths , $ index , $ path ) { if ( strpos ( $ path , DIRECTORY_SEPARATOR ) !== false ) { $ chunks = explode ( DIRECTORY_SEPARATOR , $ path ) ; $ paths = static :: branch ( $ paths , $ chunks ) ; unset ( $ paths [ $ index ] ) ; } }
Convert a path into a tree when it contains a directory separator.

@param array  $paths The paths to work on.
@param mixed  $index Index of $path.
@param string $path  Path to breakup and turn into a tree.
Convert a path into a tree when it contains a directory separator .