XML class standards

updated the xml class for PSR-2
This commit is contained in:
Adam Magness 2017-11-20 12:56:31 -05:00
parent aac2258bc3
commit ddacbf2c13
9 changed files with 210 additions and 203 deletions

View file

@ -127,7 +127,7 @@ class Probe
return array();
}
$links = XML::element_to_array($xrd);
$links = XML::elementToArray($xrd);
if (!isset($links["xrd"]["link"])) {
logger("No xrd data found for ".$host, LOGGER_DEBUG);
return array();
@ -712,7 +712,7 @@ class Probe
return false;
}
$xrd_arr = XML::element_to_array($xrd);
$xrd_arr = XML::elementToArray($xrd);
if (!isset($xrd_arr["xrd"]["link"])) {
logger("No XML webfinger links for ".$url, LOGGER_DEBUG);
return false;