src/Builder/WebBuilder.php
private function groupPackagesByName(array $packages): array
    {
        $groupedPackages = [];
        foreach ($packages as $package) {
            $groupedPackages[$package->getName()][] = $package;
        }

        return $groupedPackages;
    }
private function groupPackagesByName(array $packages): array
    {
        $groupedPackages = [];
        foreach ($packages as $package) {
            $groupedPackages[$package->getName()][] = $package;
        }

        return $groupedPackages;
    }
private function groupPackagesByName ( array $ packages ) : array { $ groupedPackages = [ ] ; foreach ( $ packages as $ package ) { $ groupedPackages [ $ package -> getName ( ) ] [ ] = $ package ; } return $ groupedPackages ; }
Gets a list of packages grouped by name.

@param PackageInterface[] $packages List of packages to dump

@return array List of packages grouped by name
Gets a list of packages grouped by name .