src/Tasks/UpdatePackageInfoTask.php
public function getPackageInfo($packageList)
    {
        $formatInfo = function ($package) {
            // Convert object to array, with Capitalised keys
            $package = get_object_vars($package);
            return array_combine(
                array_map('ucfirst', array_keys($package)),
                $package
            );
        };

        $packageList = array_map($formatInfo, $packageList);
        $this->extend('updatePackageInfo', $packageList);
        return $packageList;
    }
public function getPackageInfo($packageList)
    {
        $formatInfo = function ($package) {
            // Convert object to array, with Capitalised keys
            $package = get_object_vars($package);
            return array_combine(
                array_map('ucfirst', array_keys($package)),
                $package
            );
        };

        $packageList = array_map($formatInfo, $packageList);
        $this->extend('updatePackageInfo', $packageList);
        return $packageList;
    }
public function getPackageInfo ( $ packageList ) { $ formatInfo = function ( $ package ) { // Convert object to array, with Capitalised keys $ package = get_object_vars ( $ package ) ; return array_combine ( array_map ( 'ucfirst' , array_keys ( $ package ) ) , $ package ) ; } ; $ packageList = array_map ( $ formatInfo , $ packageList ) ; $ this -> extend ( 'updatePackageInfo' , $ packageList ) ; return $ packageList ; }
Fetch information about the installed packages.

@param array $packageList list of packages as objects, formatted as one finds in a composer.lock

@return array indexed array of package information, represented as associative arrays.
Fetch information about the installed packages .