Composer\CustomDirectoryInstaller\PackageUtils::mapCustomInstallPaths PHP Method

mapCustomInstallPaths() protected static method

Search through a passed paths array for a custom install path.
protected static mapCustomInstallPaths ( array $paths, string $name ) : string
$paths array
$name string
return string
    protected static function mapCustomInstallPaths(array $paths, $name)
    {
        foreach ($paths as $path => $names) {
            if (in_array($name, $names)) {
                return $path;
            }
        }
        return false;
    }