mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
Code cleanup
This commit is contained in:
@@ -58,7 +58,7 @@ class ChartColour
|
||||
*/
|
||||
public static function getColour(int $index): string
|
||||
{
|
||||
$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