Commit 5285e167c23ffbe474f9647e352da10e4792fff4
1 parent
c9087298
ga output
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/library/App/Controllers/GaController.php
| ... | ... | @@ -116,7 +116,7 @@ class GaController extends CrudResourceController { |
| 116 | 116 | $result = self::responseDataTransform($response, $project_name); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - return ($result); | |
| 119 | + return $result; | |
| 120 | 120 | |
| 121 | 121 | } |
| 122 | 122 | |
| ... | ... | @@ -158,7 +158,7 @@ class GaController extends CrudResourceController { |
| 158 | 158 | $result['data'][] = $metric_val[$i]; |
| 159 | 159 | } |
| 160 | 160 | } else { |
| 161 | - $result['data'][] = $metric_val[0]; | |
| 161 | + $result['data'][] = (int)$metric_val[0]; | |
| 162 | 162 | } |
| 163 | 163 | } |
| 164 | 164 | ... | ... |