src/Lib/TreeScanner.php
protected static function convertToTree(array $paths): array
    {
        foreach ($paths as $index => $path) {
            static::convertPathToTree($paths, $index, $path);
        }

        return $paths;
    }
protected static function convertToTree(array $paths): array
    {
        foreach ($paths as $index => $path) {
            static::convertPathToTree($paths, $index, $path);
        }

        return $paths;
    }
protected static function convertToTree ( array $ paths ) : array { foreach ( $ paths as $ index => $ path ) { static :: convertPathToTree ( $ paths , $ index , $ path ) ; } return $ paths ; }
Turn a set of paths into a tree.

@param array $paths Paths to turn into a tree.

@return array
Turn a set of paths into a tree .