@@ -67,13 +67,13 @@ |
||
67 | 67 | { |
68 | 68 | return [ |
69 | 69 | 'rows' => array_map( |
70 | - function ($item) use ($keys) { |
|
70 | + function($item) use ($keys) { |
|
71 | 71 | return array_intersect_key($item, array_flip($keys)); |
72 | 72 | }, |
73 | 73 | $response['data'] |
74 | 74 | ), |
75 | 75 | 'totals' => array_map( |
76 | - function ($item) { |
|
76 | + function($item) { |
|
77 | 77 | return $item['total'] ?? $item['label']; |
78 | 78 | }, |
79 | 79 | array_intersect_key($response['options']['totals']['grand_total']['columns'], array_flip($keys)) |