Skip to content

Commit 4954e82

Browse files
author
Arron Woods
committed
Groups as array
1 parent 8952f4e commit 4954e82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/convertForDeveloperDocs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
$groupedData = groupData($latestData);
3434
$outData = $groupedData;
3535

36-
$outJson = json_encode($outData, JSON_PRETTY_PRINT);
36+
$outJson = json_encode($outData, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);
3737

3838
fwrite($targetHandle, $outJson);
3939
fclose($targetHandle);
@@ -94,5 +94,5 @@ function groupData($data) {
9494
$groups[$key]['methods'][] = $object;
9595
}
9696

97-
return array('groups' => $groups);
97+
return array('groups' => array_values($groups));
9898
}

0 commit comments

Comments
 (0)