Some cleaning up courtesy of PHPStorm.

This commit is contained in:
James Cole
2016-01-16 07:14:36 +01:00
parent 1b316e462e
commit e834489206
18 changed files with 51 additions and 37 deletions

View File

@@ -124,7 +124,8 @@ class ChartJsCategoryChartGenerator implements CategoryChartGenerator
];
// get labels from one of the categories (assuming there's at least one):
$first = $entries->first();
foreach ($first['spent'] as $year => $noInterest) {
$keys = array_keys($first['spent']);
foreach ($keys as $year) {
$data['labels'][] = strval($year);
}