Skip to content

Commit fc50bf6

Browse files
author
Ethan Jinks O'Sullivan
committed
Update function comments
1 parent c6a323d commit fc50bf6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

index.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@
6969
return;
7070
}
7171

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+
*/
7278
function xmlToArray($xml, $options = [])
7379
{
7480
$defaults = [
@@ -161,7 +167,7 @@ function xmlToArray($xml, $options = [])
161167
* @param string $title Title of the error, (eg "Missing Parameter") when `$_GET['xml']` doesn't exist
162168
* @param string $detail Description for the title
163169
*
164-
* @return array The response
170+
* @return array The error response
165171
*/
166172
function constructErrorResponse($statusCode, $title, $detail)
167173
{

0 commit comments

Comments
 (0)