From 4c1ff7cd556ad0c2ecf50e63e930514f6c07a756 Mon Sep 17 00:00:00 2001 From: Raphael Scheible Date: Mon, 18 Mar 2019 15:51:19 +0100 Subject: [PATCH] fixed small bug --- src/Formatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Formatter.php b/src/Formatter.php index 409a017..3229096 100644 --- a/src/Formatter.php +++ b/src/Formatter.php @@ -212,7 +212,7 @@ private function randomColor() { private static function getColor($i) { $n = count(self::$colors); - if ($this->repeatColors) { + if (self::$repeatColors) { return new Hex(self::$colors[$i % $n]); } else { return ($i >= $n) ? self::randomColor() : new Hex(self::$colors[$i]);