private static function injectDeprecatedConfig(array $config, array $extra)
    {
        foreach (self::$deprecatedOptions as $key => $deprecatedKey) {
            if (\array_key_exists($deprecatedKey, $extra) && !\array_key_exists($key, $config)) {
                $config[$key] = $extra[$deprecatedKey];
            }
        }

        return $config;
    }
private static function injectDeprecatedConfig(array $config, array $extra)
    {
        foreach (self::$deprecatedOptions as $key => $deprecatedKey) {
            if (\array_key_exists($deprecatedKey, $extra) && !\array_key_exists($key, $config)) {
                $config[$key] = $extra[$deprecatedKey];
            }
        }

        return $config;
    }
private static function injectDeprecatedConfig ( array $ config , array $ extra ) { foreach ( self :: $ deprecatedOptions as $ key => $ deprecatedKey ) { if ( \ array_key_exists ( $ deprecatedKey , $ extra ) && ! \ array_key_exists ( $ key , $ config ) ) { $ config [ $ key ] = $ extra [ $ deprecatedKey ] ; } } return $ config ; }
Inject the deprecated keys in config if the config keys are not present.

@param array $config The config
@param array $extra  The root package extra section

@return array
Inject the deprecated keys in config if the config keys are not present .