public static function convertLockAlias(array $lockData)
    {
        if (isset($lockData['aliases'])) {
            $aliases = array();

            foreach ($lockData['aliases'] as $i => $config) {
                $aliases[$config['package']][$config['version']] = array(
                    'alias' => $config['alias'],
                    'alias_normalized' => $config['alias_normalized'],
                );
            }

            $lockData['aliases'] = $aliases;
        }

        return $lockData;
    }
public static function convertLockAlias(array $lockData)
    {
        if (isset($lockData['aliases'])) {
            $aliases = array();

            foreach ($lockData['aliases'] as $i => $config) {
                $aliases[$config['package']][$config['version']] = array(
                    'alias' => $config['alias'],
                    'alias_normalized' => $config['alias_normalized'],
                );
            }

            $lockData['aliases'] = $aliases;
        }

        return $lockData;
    }
public static function convertLockAlias ( array $ lockData ) { if ( isset ( $ lockData [ 'aliases' ] ) ) { $ aliases = array ( ) ; foreach ( $ lockData [ 'aliases' ] as $ i => $ config ) { $ aliases [ $ config [ 'package' ] ] [ $ config [ 'version' ] ] = array ( 'alias' => $ config [ 'alias' ] , 'alias_normalized' => $ config [ 'alias_normalized' ] , ) ; } $ lockData [ 'aliases' ] = $ aliases ; } return $ lockData ; }
Convert the package aliases of the locker load data.

@param array $lockData The lock data of locker

@return array The lock data
Convert the package aliases of the locker load data .