Skip to content

Commit cfb7568

Browse files
committed
Maintain consistency with json keys (camelCase)
Signed-off-by: Kent Delante <[email protected]>
1 parent 25ab3d4 commit cfb7568

File tree

1 file changed

+3
-3
lines changed
  • apps/settings/lib/Command/AdminDelegation

1 file changed

+3
-3
lines changed

apps/settings/lib/Command/AdminDelegation/Show.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ private function getDelegatedSettings(array $settings, array $innerSection): arr
9393
return $settings + array_filter($innerSection, fn (ISettings $setting) => $setting instanceof IDelegatedSettings);
9494
}
9595

96-
protected function buildJsonOutput(array $sections): array {
96+
private function buildJsonOutput(array $sections): array {
9797
$currentDelegations = [
98-
'current_delegations' => []
98+
'currentDelegations' => []
9999
];
100100

101101
foreach ($sections as $sectionPriority) {
@@ -106,7 +106,7 @@ protected function buildJsonOutput(array $sections): array {
106106
continue;
107107
}
108108

109-
$currentDelegations['current_delegations'][] = [
109+
$currentDelegations['currentDelegations'][] = [
110110
'section' => $section->getID(),
111111
'delegations' =>
112112
array_map(function (IDelegatedSettings $setting) use ($section, $headers) {

0 commit comments

Comments
 (0)