projects
/
tweeper.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7ec1925
)
tweeper.php: make jsonToXml() a static method
author
Antonio Ospite <ao2@ao2.it>
Wed, 18 May 2016 09:06:34 +0000
(11:06 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Fri, 20 May 2016 09:03:52 +0000
(11:03 +0200)
tweeper.php
patch
|
blob
|
history
diff --git
a/tweeper.php
b/tweeper.php
index
817452b
..
f475856
100644
(file)
--- a/
tweeper.php
+++ b/
tweeper.php
@@
-221,7
+221,7
@@
class Tweeper {
/**
* Convert json to xml.
*/
/**
* Convert json to xml.
*/
- private function jsonToXml($json, $root_node_name) {
+ private
static
function jsonToXml($json, $root_node_name) {
// Apparently 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.
// Apparently 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.
@@
-261,7
+261,7
@@
class Tweeper {
return NULL;
}
return NULL;
}
- return
$this->
jsonToXml($matches[1], 'instagram');
+ return
Tweeper::
jsonToXml($matches[1], 'instagram');
}
/**
}
/**