private static function _convertParameters(&$params)
    {
        $res = [];

        foreach ($params as $param => $substitutions) {
            $res["$param"] = [];
            foreach ($substitutions as $key => $value) {
                $res["$param"]["$key"] = "$value";
            }
        }

        return $res;
    }
private static function _convertParameters(&$params)
    {
        $res = [];

        foreach ($params as $param => $substitutions) {
            $res["$param"] = [];
            foreach ($substitutions as $key => $value) {
                $res["$param"]["$key"] = "$value";
            }
        }

        return $res;
    }
private static function _convertParameters ( & $ params ) { $ res = [ ] ; foreach ( $ params as $ param => $ substitutions ) { $ res [ "$param" ] = [ ] ; foreach ( $ substitutions as $ key => $ value ) { $ res [ "$param" ] [ "$key" ] = "$value" ; } } return $ res ; }
Converts an object describing parameter mappings to associative
arrays.

We want an associative array but since `json_decode` produces
an object whose fields correspond to the substitutions we need
to do a bit of conversion.

@param object $params the parameter mapping object

@return array the parameter mappings
Converts an object describing parameter mappings to associative arrays .