Skip to content

Commit

Permalink
fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
ShockedPlot7560 committed Dec 11, 2023
1 parent e594447 commit 04e820f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/players/util/SortedMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public function contains(string|int $key) : bool {
public function set(string|int $key, mixed $value, int $score) : void {
$this->entries[$key] = $value;
$this->key_scores[$key] = $score;
$scores = $this->key_scores;
$scores = $this->key_scores;
uksort($scores, fn (string $k1, string $k2) : int => $this->key_scores[$k1] <=> $this->key_scores[$k2]);
$this->key_scores = $scores;
$this->key_scores = $scores;
}

/**
Expand Down

0 comments on commit 04e820f

Please sign in to comment.