Skip to content

Commit

Permalink
fixed small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Scheible committed Mar 18, 2019
1 parent 719f211 commit 4c1ff7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 4c1ff7c

Please sign in to comment.