code refactoring
- variable names - unused parameters
This commit is contained in:
@ -53,6 +53,18 @@ class DedimaniaData {
|
||||
$this->serverBuild = $serverVersion->build;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sort the Records
|
||||
*/
|
||||
public function sortRecords() {
|
||||
usort($this->records, function (RecordData $first, RecordData $second) {
|
||||
if ($first->best == $second->best) {
|
||||
return ($first->rank - $second->rank);
|
||||
}
|
||||
return ($first->best - $second->best);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the Data Array
|
||||
*
|
||||
|
Reference in New Issue
Block a user