Fixed some duplication.

This commit is contained in:
James Cole
2015-07-06 17:45:59 +02:00
parent 3fb14b4708
commit a4cc25175a
4 changed files with 15 additions and 33 deletions

View File

@@ -28,7 +28,6 @@ class ChartJsBudgetChartGenerator implements BudgetChartGenerator
$format = Config::get('firefly.' . $dateFormat . '.' . $language);
$data = [
'count' => 1,
'labels' => [],
'datasets' => [
[
@@ -45,6 +44,8 @@ class ChartJsBudgetChartGenerator implements BudgetChartGenerator
}
$data['count'] = count($data['datasets']);
return $data;
}
@@ -118,7 +119,6 @@ class ChartJsBudgetChartGenerator implements BudgetChartGenerator
$format = Config::get('firefly.month.' . $language);
$data = [
'count' => 0,
'labels' => [],
'datasets' => [],
];