From b25986590ebff9cfbf6b1a5b55c1ba9dc748d210 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Mon, 16 May 2016 13:12:22 +0200 Subject: [PATCH] tweeper.php: rename $rootName to $root_node_name --- tweeper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.1.4