system/src/Grav/Common/GPM/GPM.php
/**
     * Calculates and merges the dependencies of the passed packages
     *
     * @param array $packages
     *
     * @return mixed
     * @throws \Exception
     */
Calculates and merges the dependencies of the passed packages
@param array $packages

@return mixed
@throws \Exception
Calculates and merges the dependencies of the passed packages @param array $packages @return mixed @throws \ Exception
public function calculateMergedDependenciesOfPackages($packages)
    {
        $dependencies = [];
        foreach ($packages as $package) {
            $dependencies = $this->calculateMergedDependenciesOfPackage($package, $dependencies);
        }
        return $dependencies;
    }
public function calculateMergedDependenciesOfPackages ( $ packages ) { $ dependencies = [ ] ; foreach ( $ packages as $ package ) { $ dependencies = $ this -> calculateMergedDependenciesOfPackage ( $ package , $ dependencies ) ; } return $ dependencies ; }
Calculates and merges the dependencies of the passed packages
 @param array $packages
Calculates and merges the dependencies of the passed packages @param array $packages