mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Clean up code.
This commit is contained in:
@@ -209,7 +209,7 @@ class ChartJsGenerator implements GeneratorInterface
|
||||
*/
|
||||
public function singleSet(string $setLabel, array $data): array
|
||||
{
|
||||
$chartData = [
|
||||
return [
|
||||
'count' => 1,
|
||||
'labels' => array_keys($data), // take ALL labels from the first set.
|
||||
'datasets' => [
|
||||
@@ -219,7 +219,5 @@ class ChartJsGenerator implements GeneratorInterface
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
return $chartData;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user