From 2b192b3840ac344c456b98304ea400f0af90da15 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 13 Jan 2024 16:12:11 +0100 Subject: Updated 46 files and deleted 19 files (automated) --- includes/util/rainbow.inc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'includes/util/rainbow.inc') diff --git a/includes/util/rainbow.inc b/includes/util/rainbow.inc index 3dc9480..027c771 100644 --- a/includes/util/rainbow.inc +++ b/includes/util/rainbow.inc @@ -3,15 +3,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/score.inc"; -function rainbow($hideCloudburst = false): array { +function rainbow(): array { $members = scoreOrderGlobal(); - if ($hideCloudburst) { - $members = array_filter($members, function ($i) { - return $i["_system"] === "gdapd"; - }); - } - $data = []; foreach ($members as $member) { @@ -39,8 +33,8 @@ function rainbow($hideCloudburst = false): array { return $data; } -function getMembersByColor($hideCloudburst = false, $ignoreHumans = false): array { - $members = rainbow($hideCloudburst); +function getMembersByColor($_ = false, $ignoreHumans = false): array { + $members = rainbow(); uasort($members, function ($a, $b) { return $a['hsl'][0] - $b['hsl'][0]; -- cgit