From 8084a3d5e37ce07a05510290fcd6952b53a4ce4c Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 9 Nov 2018 15:40:17 +0100 Subject: [PATCH 1/1] src/Tweeper.php: put a comment right before the code it refers to --- src/Tweeper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Tweeper.php b/src/Tweeper.php index 9a449a7..831f47d 100644 --- a/src/Tweeper.php +++ b/src/Tweeper.php @@ -249,10 +249,12 @@ class Tweeper { return NULL; } + $data = json_decode($matches[1], $assoc = TRUE); + // The "qe" object contains elements which will result in invalid XML // element names, so remove it. - $data = json_decode($matches[1], $assoc = TRUE); unset($data["qe"]); + $json = json_encode($data); return Tweeper::jsonToXml($json, 'instagram'); -- 2.1.4