mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 14:12:15 +00:00
Code cleanup before release.
This commit is contained in:
@@ -58,7 +58,7 @@ class ChartColour
|
||||
*/
|
||||
public static function getColour(int $index): string
|
||||
{
|
||||
$index = $index % count(self::$colours);
|
||||
$index %= count(self::$colours);
|
||||
$row = self::$colours[$index];
|
||||
|
||||
return sprintf('rgba(%d, %d, %d, 0.7)', $row[0], $row[1], $row[2]);
|
||||
|
||||
Reference in New Issue
Block a user