From 9cbda58bc4ce566304a54677011f0f73cded3f7a Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 17 Feb 2017 20:16:22 +0200 Subject: [PATCH] ga output --- app/library/App/Controllers/GaController.php | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/app/library/App/Controllers/GaController.php b/app/library/App/Controllers/GaController.php index 442630f..7ca6b79 100644 --- a/app/library/App/Controllers/GaController.php +++ b/app/library/App/Controllers/GaController.php @@ -83,6 +83,12 @@ class GaController extends CrudResourceController { return ($obj); + $result = []; + + foreach ($obj as $key => $value) { + $result[$key['dimensions']] = $value->values; + } + } public function printResults($reports) { -- libgit2 0.21.4