From: Antonio Ospite Date: Mon, 16 May 2016 11:12:22 +0000 (+0200) Subject: tweeper.php: rename $rootName to $root_node_name X-Git-Tag: v0.6~46 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/b25986590ebff9cfbf6b1a5b55c1ba9dc748d210?ds=inline tweeper.php: rename $rootName to $root_node_name --- diff --git a/tweeper.php b/tweeper.php index 0034a0d..293595f 100644 --- a/tweeper.php +++ b/tweeper.php @@ -182,7 +182,7 @@ class Tweeper { return $xsltProcessor; } - private function json_to_xml($json, $rootName) { + private function json_to_xml($json, $root_node_name) { // Apparenty the ObjectNormalizer used afterwards is not able to handle // the stdClass object created by json_decode() with the default setting // $assoc = false; so use $assoc = true @@ -198,7 +198,7 @@ class Tweeper { $serializer_options = array ( 'xml_encoding' => "UTF-8", 'xml_format_output' => TRUE, - 'xml_root_node_name' => $rootName, + 'xml_root_node_name' => $root_node_name, ); $xml_data = $serializer->serialize($data, 'xml', $serializer_options);