code refactoring
- improved comparing & checking - improved string composition
This commit is contained in:
1 parent
bd6e0b5151
commit
9985b814d2
41 files changed
+337
-318
No files matched your search
@@ -111,7 +111,7 @@ class RankingManager implements CallbackListener {
|
||||
$leaders = array();
|
||||
$prev = -1;
|
||||
foreach ($this->rankings as $score) {
|
||||
if ($prev != -1 && $prev < $score) {
|
||||
if ($prev !== -1 && $prev < $score) {
|
||||
return $leaders;
|
||||
}
|
||||
array_push($leaders, $leader);
|
||||
|
||||
Reference in new issue
Block a user