| |
---|
| | |
---|
| | ksort($weeklyOccurrences); |
---|
| | |
---|
| | foreach ($weeklyOccurrences as $week => $value) { |
---|
| | if ($value >= 2) { |
---|
| | if ($value >= $multiplier) { |
---|
| | $consecutiveCount++; |
---|
| | $maxConsecutiveCount = max($maxConsecutiveCount, $consecutiveCount); |
---|
| | } else { |
---|
| | $consecutiveCount = 0; // Reset count if the value is less than 2 |
---|
| |
---|
| | |