We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6a323d commit fc50bf6Copy full SHA for fc50bf6
index.php
@@ -69,6 +69,12 @@
69
return;
70
}
71
72
+/**
73
+ * @param string $xml XML code to convert to JSON
74
+ * @param array $options Options of the API to change JSON output
75
+ *
76
+ * @return array The JSON response
77
+ */
78
function xmlToArray($xml, $options = [])
79
{
80
$defaults = [
@@ -161,7 +167,7 @@ function xmlToArray($xml, $options = [])
161
167
* @param string $title Title of the error, (eg "Missing Parameter") when `$_GET['xml']` doesn't exist
162
168
* @param string $detail Description for the title
163
169
*
164
- * @return array The response
170
+ * @return array The error response
165
171
*/
166
172
function constructErrorResponse($statusCode, $title, $detail)
173
0 commit comments