From: Antonio Ospite Date: Fri, 9 Nov 2018 14:40:17 +0000 (+0100) Subject: src/Tweeper.php: put a comment right before the code it refers to X-Git-Tag: v1.4.0~12 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/8084a3d5e37ce07a05510290fcd6952b53a4ce4c?ds=inline;hp=f9473765bc12480112139131381a19e6d60e279f src/Tweeper.php: put a comment right before the code it refers to --- 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');